> Date: Fri, 29 Aug 2008 23:19:33 +0200 > From: [EMAIL PROTECTED] > > > I just came to the gcc option -funsigned-char. We may use it and > > remove the casts to the libc functions. > > I don't believe that would solve anything really, because we are > still trying to collapse two different types (regardless of its > machine representation) in one. The same would happen with 'int' > (for which we do have differentiated its signess). > > Well, what we need is to operate on unsigned chars (values 0 - > 255). The problem is to have to cast the (char *) arguments in systems > where char is signed by default.
Hah, jemarch I'm confused now. You say we should use the -funsigned-char flag and declare pdf_char_t as 'char' ? Help me here. cheers -gerel
