[Coco] help with C problem

Gene Heskett gene.heskett at verizon.net
Mon Jan 2 20:19:41 EST 2006


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.

>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>

-- 
Cheers, Gene
People having trouble with vz bouncing email to me should add the word
'online' between the 'verizon', and the dot which bypasses vz's
stupid bounce rules.  I do use spamassassin too. :-)
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2005 by Maurice Eugene Heskett, all rights reserved.



More information about the Coco mailing list