[Coco] help with C problem

Chris Hawks chawks at dls.net
Mon Jan 2 22:22:12 EST 2006


---Reply to mail from Gene Heskett about [Coco] help with C problem

> On Monday 02 January 2006 19:37, Robert Gault wrote:
>>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.
>>
> Yes, I think so.

    Me too, seeing as how Bob declared the pointers as 'char *', they are
signed.

    Simplest way to cheat is to declare them as 'unsigned char *'.

---End reply

Christopher R. Hawks
HAWKSoft
-------------------------------------------------------------------------
Hey! It compiles! Ship It!








More information about the Coco mailing list