Displaying 1 result from an estimated 1 matches for "_decode_hex_digit".
2011 Jan 19
1
Pigeonhole 2.2 build issue on arm
...unction '_parse_hex_value':
uri-mailto.c:139: warning: comparison is always false due to limited
range of data type
uri-mailto.c:145: warning: comparison is always false due to limited
range of data type
The problem is a test assuming that char is a signed type :
static inline int _decode_hex_digit(char digit)
{
...
static bool _parse_hex_value(const char **in, char *out)
{
char value; // <<--- change to "int".
if ( **in == '\0' || (value=_decode_hex_digit(**in)) < 0 )
return FALSE;
*out = value << 4;
(...