Permalink
Browse files

And another fix for hex_value

  • Loading branch information...
1 parent 26fe611 commit c5c8d6dbc36cd68a0685970ddb9d2e8416cffb78 @udp committed Feb 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 json.c
View
4 json.c
@@ -44,10 +44,10 @@ typedef unsigned short json_uchar;
static unsigned char hex_value (json_char c)
{
- if (c >= 'A' && c <= 'Z')
+ if (c >= 'A' && c <= 'F')
return (c - 'A') + 10;
- if (c >= 'a' && c <= 'z')
+ if (c >= 'a' && c <= 'f')
return (c - 'a') + 10;
if (c >= '0' && c <= '9')

0 comments on commit c5c8d6d

Please sign in to comment.