libjson: fix mistake in unicode handler (thanks cinap)
This commit is contained in:
parent
b1bc8b5c2b
commit
abb8ce3878
1 changed files with 3 additions and 3 deletions
|
@ -127,9 +127,9 @@ lex(Lex *l)
|
|||
|
||||
c = getch(l);
|
||||
r *= 16;
|
||||
if(c > '0' && c < '9') r += c - '0';
|
||||
else if(c > 'a' && c < 'f') r += c - 'a' + 10;
|
||||
else if(c > 'A' && c < 'F') r += c - 'A' + 10;
|
||||
if(c >= '0' && c <= '9') r += c - '0';
|
||||
else if(c >= 'a' && c <= 'f') r += c - 'a' + 10;
|
||||
else if(c >= 'A' && c <= 'F') r += c - 'A' + 10;
|
||||
}
|
||||
break;
|
||||
case 't':
|
||||
|
|
Loading…
Reference in a new issue