summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Scanner.l
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2018-11-13 17:56:05 +0100
committerJose <jose@zeroc.com>2018-11-13 17:56:05 +0100
commita4588ad8a19b47a6c76e75a759678a5a27450865 (patch)
treee52e25c058598ed73f0eb042d8a0c1a505dab991 /cpp/src/Slice/Scanner.l
parentBetter fix for #291 (diff)
downloadice-a4588ad8a19b47a6c76e75a759678a5a27450865.tar.bz2
ice-a4588ad8a19b47a6c76e75a759678a5a27450865.tar.xz
ice-a4588ad8a19b47a6c76e75a759678a5a27450865.zip
Fix failure related to Slice Scanner fixes
Revert the IceStorm/Grammar generated files to use the old Bison version. Regenerate Slice/Scanner using using Flex 2.5
Diffstat (limited to 'cpp/src/Slice/Scanner.l')
-rw-r--r--cpp/src/Slice/Scanner.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Slice/Scanner.l b/cpp/src/Slice/Scanner.l
index 0f5e2db6962..55f675db3bf 100644
--- a/cpp/src/Slice/Scanner.l
+++ b/cpp/src/Slice/Scanner.l
@@ -394,7 +394,7 @@ floating_literal (({fractional_constant}{exponent_part}?)|((\+|-)?[[:digit:]]
while(size > 0)
{
next = yyinput();
- if(!isxdigit(static_cast<unsigned char>(next)))
+ if(!isxdigit(next))
{
unit->error(string("unknown escape sequence in string literal: `\\") +
static_cast<char>(c) + escape + static_cast<char>(next) + "'");
@@ -424,7 +424,7 @@ floating_literal (({fractional_constant}{exponent_part}?)|((\+|-)?[[:digit:]]
default:
{
ostringstream os;
- os << "unknown escape sequence `\\" << next << "'";
+ os << "unknown escape sequence `\\" << static_cast<char>(next) << "'";
unit->warning(All, os.str());
// Escape the \ in this unknown escape sequence