summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpp/src/Slice/Scanner.cpp1
-rw-r--r--cpp/src/Slice/Scanner.l1
2 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/Slice/Scanner.cpp b/cpp/src/Slice/Scanner.cpp
index fc2fc290dac..b90e7bed501 100644
--- a/cpp/src/Slice/Scanner.cpp
+++ b/cpp/src/Slice/Scanner.cpp
@@ -1207,6 +1207,7 @@ YY_RULE_SETUP
case '3':
case '4':
case '5':
+ case '6':
case '7':
{
static string octalDigits = "01234567";
diff --git a/cpp/src/Slice/Scanner.l b/cpp/src/Slice/Scanner.l
index 9054c1e90ed..083cd55a7d4 100644
--- a/cpp/src/Slice/Scanner.l
+++ b/cpp/src/Slice/Scanner.l
@@ -333,6 +333,7 @@ floating_literal (({fractional_constant}{exponent_part}?)|((\+|-)?[[:digit:]]+{e
case '3':
case '4':
case '5':
+ case '6':
case '7':
{
static string octalDigits = "01234567";