Assuming 'char' is an signed value...
Petter Reinholdtsen
pere at HUNGRY.COM
Thu Jan 27 04:09:50 EST 2005
[Julien Demaria]
> Petter,
>
> maybe this option of gcc can help you ?
>
> "-fsigned-char
> Let the type char be signed, like signed char. "
>
> (We use this option to port a project to IRIX...)
Yes, this option might help me, but not the code which make assumtions
which are not garantees given by the ANSI C specification. :)
I believe C99 specifies that char always should be signed, but not all
compilers follow the latest ANSI C standard yet. Which brings me back
to my recommondation about using uint8_t which are well specified in
all ANSI C specs.
More information about the mapserver-dev
mailing list