summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Scanner.l
diff options
context:
space:
mode:
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