summaryrefslogtreecommitdiff
path: root/cpp/src/FreezeScript/Scanner.l
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/FreezeScript/Scanner.l')
-rw-r--r--cpp/src/FreezeScript/Scanner.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/FreezeScript/Scanner.l b/cpp/src/FreezeScript/Scanner.l
index 972a147dbfd..31a4586c789 100644
--- a/cpp/src/FreezeScript/Scanner.l
+++ b/cpp/src/FreezeScript/Scanner.l
@@ -330,14 +330,14 @@ parseString(char start)
case 'x':
{
IceUtil::Int64 ull = 0;
- while(isxdigit(next = static_cast<char>(yyinput())))
+ while(isxdigit(static_cast<unsigned char>(next = static_cast<char>(yyinput()))))
{
ull *= 16;
- if(isdigit(next))
+ if(isdigit(static_cast<unsigned char>(next)))
{
ull += next - '0';
}
- else if(islower(next))
+ else if(islower(static_cast<unsigned char>(next)))
{
ull += next - 'a' + 10;
}