fixed \u in lexer

This commit is contained in:
albertodemichelis 2017-11-17 03:56:28 +08:00
parent d2de0ef10d
commit effd225a84

View File

@ -383,7 +383,7 @@ SQInteger SQLexer::ReadString(SQInteger ndelim,bool verbatim)
break;
case _SC('U'):
case _SC('u'): {
const SQInteger maxdigits = x == 'u' ? 4 : 8;
const SQInteger maxdigits = CUR_CHAR == 'u' ? 4 : 8;
SQChar temp[8 + 1];
ProcessStringHexEscape(temp, maxdigits);
SQChar *stemp;