On Tue, Sep 8, 2009 at 7:43 AM, Jon Radel <j...@radel.com> 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 > j...@radel.com >
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. _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"