Merge pull request #61 from danschubert/master
Fixed VC2010 warnings caused by implicit conversion from 'long' to 'char'.
This commit is contained in:
4
lex.ll
4
lex.ll
@@ -396,12 +396,12 @@ lEscapeChar(char *str, char *pChar, SourcePos *pos)
|
|||||||
// octal constants \012
|
// octal constants \012
|
||||||
case '0': case '1': case '2': case '3': case '4':
|
case '0': case '1': case '2': case '3': case '4':
|
||||||
case '5': case '6': case '7':
|
case '5': case '6': case '7':
|
||||||
*pChar = strtol(str, &tail, 8);
|
*pChar = (char)strtol(str, &tail, 8);
|
||||||
str = tail - 1;
|
str = tail - 1;
|
||||||
break;
|
break;
|
||||||
// hexidecimal constant \xff
|
// hexidecimal constant \xff
|
||||||
case 'x':
|
case 'x':
|
||||||
*pChar = strtol(str, &tail, 16);
|
*pChar = (char)strtol(str, &tail, 16);
|
||||||
str = tail - 1;
|
str = tail - 1;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user