Skip to content

Commit

Permalink
Merge pull request ispc#61 from danschubert/master
Browse files Browse the repository at this point in the history
Fixed VC2010 warnings caused by implicit conversion from 'long' to 'char'.
  • Loading branch information
mmp committed Jul 7, 2011
2 parents aef8c09 + 409bdc0 commit 092d288
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lex.ll
Expand Up @@ -396,12 +396,12 @@ lEscapeChar(char *str, char *pChar, SourcePos *pos)
// octal constants \012
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7':
*pChar = strtol(str, &tail, 8);
*pChar = (char)strtol(str, &tail, 8);
str = tail - 1;
break;
// hexidecimal constant \xff
case 'x':
*pChar = strtol(str, &tail, 16);
*pChar = (char)strtol(str, &tail, 16);
str = tail - 1;
break;
default:
Expand Down

0 comments on commit 092d288

Please sign in to comment.