[Coco] help with C problem
Robert Gault
robert.gault at worldnet.att.net
Mon Jan 2 19:37:09 EST 2006
Hmmm, that does not read the way I think you meant it to read. The
problem could be if the C code thinks the value is signed because it
will then always be in the range -127 to +127. That would then generate
the "always true warning."
Maybe Bob needs an unsigned cast to force the value to be 0-255.
Gene Heskett wrote:
><snip>
> This while statement then is going to be forever true if its a '< 128'
> test if what its being compared to has been anded with 0xFF(127
> decimal). In my mind anyway, it still needs a stopper of '<=127'.
> Or am I not understanding what it is that you want to do, Bob?
>
><snip>
More information about the Coco
mailing list