libjson: fix mistake in unicode handler (thanks cinap)

This commit is contained in:
BurnZeZ 2013-10-27 19:29:02 -04:00
parent b1bc8b5c2b
commit abb8ce3878

View file

@ -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':