Browse Source

fixed \u in lexer

albertodemichelis 8 years ago
parent
commit
effd225a84
1 changed files with 1 additions and 1 deletions
  1. 1 1
      squirrel/sqlexer.cpp

+ 1 - 1
squirrel/sqlexer.cpp

@@ -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;