summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/Scanner.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2018-11-29 18:31:49 +0000
committerJose <jose@zeroc.com>2018-11-29 18:31:49 +0000
commit8c1bfdae62a47d47f913158500015664ab62090a (patch)
treed07a24fe203a74cedd1819a560dcec68e905cb0b /cpp/src/IceGrid/Scanner.cpp
parentRevert "Removed Ice.Applicatiion from IceBox in Java." (diff)
downloadice-8c1bfdae62a47d47f913158500015664ab62090a.tar.bz2
ice-8c1bfdae62a47d47f913158500015664ab62090a.tar.xz
ice-8c1bfdae62a47d47f913158500015664ab62090a.zip
Fix ARM build failures related to Scanner generated code
Diffstat (limited to 'cpp/src/IceGrid/Scanner.cpp')
-rw-r--r--cpp/src/IceGrid/Scanner.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/cpp/src/IceGrid/Scanner.cpp b/cpp/src/IceGrid/Scanner.cpp
index bfc2338021f..6b313c3160e 100644
--- a/cpp/src/IceGrid/Scanner.cpp
+++ b/cpp/src/IceGrid/Scanner.cpp
@@ -882,7 +882,7 @@ YY_RULE_SETUP
string s;
while(true)
{
- char c = static_cast<char>(yyinput());
+ int c = yyinput();
if(c == '\'')
{
break;
@@ -894,7 +894,7 @@ YY_RULE_SETUP
}
else
{
- s += c;
+ s += static_cast<char>(c);
}
}
yylvalp->clear();
@@ -911,7 +911,7 @@ YY_RULE_SETUP
s += yytext[0];
while(true)
{
- char c = static_cast<char>(yyinput());
+ int c = yyinput();
if(c == EOF)
{
break;
@@ -926,12 +926,12 @@ YY_RULE_SETUP
s += parseSingleQuotedString();
continue;
}
- else if(isspace(static_cast<unsigned char>(c)) || c == ';')
+ else if(isspace(c) || c == ';')
{
unput(c);
break;
}
- s += c;
+ s += static_cast<char>(c);
}
yylvalp->clear();
@@ -2002,7 +2002,7 @@ parseDoubleQuotedString()
string s;
while(true)
{
- char c = static_cast<char>(yyinput());
+ int c = yyinput();
if(c == '"')
{
break;
@@ -2014,26 +2014,26 @@ parseDoubleQuotedString()
}
else if(c == '\\')
{
- char next = static_cast<char>(yyinput());
+ int next = yyinput();
switch(next)
{
case '\\':
case '"':
{
- s += next;
+ s += static_cast<char>(next);
break;
}
default:
{
- s += c;
+ s += static_cast<char>(c);
unput(next);
}
}
}
else
{
- s += c;
+ s += static_cast<char>(c);
}
}
return s;
@@ -2045,7 +2045,7 @@ parseSingleQuotedString()
string s;
while(true)
{
- char c = static_cast<char>(yyinput());
+ int c = yyinput();
if(c == '\'')
{
break;
@@ -2057,7 +2057,7 @@ parseSingleQuotedString()
}
else
{
- s += c;
+ s += static_cast<char>(c);
}
}
return s;