[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wmappl



On  10 Jul, this message from Mij echoed through cyberspace:
> I get errors like
> "rcparser.c:384: warning: comparison is always true due to limited range 
> of data type"
> 
> Seeking code, it seems perfect && absolutely non-ambiguous.

This normally means the author of that code thought that all chars are
signed, once and for all, on all platforms. Which is not true...

On PowerPC, chars are defined unsigned. There are two ways out:

- compile that code with -fsigned-char (quick&dirty), which changes the
  default char definition;

- change the code that relies on char's signedness to explicitly ask for
  signed or unsigned chars (clean solution).

As someone else posted, in this case, neither is the 'right' solution.

Cheers

Michel

-------------------------------------------------------------------------
Michel Lanners                 |  " Read Philosophy.  Study Art.
23, Rue Paul Henkes            |    Ask Questions.  Make Mistakes.
L-1710 Luxembourg              |
email   mlan@cpu.lu            |
http://www.cpu.lu/~mlan        |                     Learn Always. "


-- 
To UNSUBSCRIBE, email to debian-powerpc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: