summaryrefslogtreecommitdiff
path: root/cpp/src/IceStorm/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/IceStorm/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/IceStorm/Scanner.cpp')
-rw-r--r--cpp/src/IceStorm/Scanner.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/cpp/src/IceStorm/Scanner.cpp b/cpp/src/IceStorm/Scanner.cpp
index eaf372dad78..e37cac3c3b2 100644
--- a/cpp/src/IceStorm/Scanner.cpp
+++ b/cpp/src/IceStorm/Scanner.cpp
@@ -869,7 +869,7 @@ YY_RULE_SETUP
string s;
while(true)
{
- char c = static_cast<char>(yyinput());
+ int c = yyinput();
if(c == '"')
{
break;
@@ -881,26 +881,26 @@ YY_RULE_SETUP
}
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);
}
}
yylvalp->clear();
@@ -916,7 +916,7 @@ YY_RULE_SETUP
string s;
while(true)
{
- char c = static_cast<char>(yyinput());
+ int c = yyinput();
if(c == '\'')
{
break;
@@ -945,18 +945,18 @@ YY_RULE_SETUP
s += yytext[0];
while(true)
{
- char c = static_cast<char>(yyinput());
+ int c = yyinput();
if(c == EOF)
{
break;
}
- 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();