Closed GoogleCodeExporter closed 9 years ago
Thank you for the report.
There are two problems here:
- char is actually signed with a range -128..127, I have fixed the documentation
- char() and short() functions did not correctly handle negative values, this
has also been fixed
Additionally, I have added an as_unsigned function to interpret signed char,
short and int values as unsigned values placed in an int, int and long
respectively.
After an update, you can write the check as either
if(t == char(0xd0)) or if(as_unsigned(t) == 0xd0)
Original comment by Where...@gmail.com
on 16 Jun 2013 at 4:59
Original issue reported on code.google.com by
TOLCli...@yandex.ru
on 14 Jun 2013 at 12:32