On Tue, Sep 8, 2009 at 7:43 AM, Jon Radel <[email protected]> wrote: > Mark Stapper wrote: > > besides.. 0x80!=0200 >> it's 0200 octal which is 128 decimal... >> Might be why it doesn't work for you. >> > > Don't mess with his head. ;-) > > 0200 = 0x80 = 128 > > 200 octal = 80 hex = 128 decimal > > -- > > --Jon Radel > [email protected] >
You may want to check if your char type is signed. If it is (and it just happens to be 8 bits wide), (char)128 is a negative value. _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[email protected]"
