[XviD-devel] ptr_t signed?

Stephan Krause s_kraste at ira.uka.de
Wed Mar 5 10:38:14 CET 2003


Christoph Lampert wrote:

> is there any reason why ptr_t type was chosen _unsigned_.  I wanted to use
> is as memory offset and loop counter, so signed type would suit me better.
> (Loops running backwards with check for >= are not possible otherwise).
>
> C99 has two types: intptr_t is signed, uintptr_t is unsigned, we could
> also introduce those to make it clearer.

As long as ptr_t is 64 bit on ia64 I don't mind whether it is signed or 
unsigned ;) But the solution with intptr_t and uintptr_t seems best to me.

Stephan

-- 
Sig fault. (core dumped)



More information about the XviD-devel mailing list