diff options
author | Jose <jose@zeroc.com> | 2018-11-29 18:31:49 +0000 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2018-11-29 18:31:49 +0000 |
commit | 8c1bfdae62a47d47f913158500015664ab62090a (patch) | |
tree | d07a24fe203a74cedd1819a560dcec68e905cb0b /cpp/src/IceStorm/Scanner.cpp | |
parent | Revert "Removed Ice.Applicatiion from IceBox in Java." (diff) | |
download | ice-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.cpp | 18 |
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(); |