summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.c b/parse.c
index 7700bb80dd..0eb581f8ab 100644
--- a/parse.c
+++ b/parse.c
@@ -5719,7 +5719,7 @@ retry:
yylval.val = rb_str2inum(tok(), 2);
return tINTEGER;
}
- else if (c >= '0' && c <= '7' || c == '_') {
+ if (c >= '0' && c <= '7' || c == '_') {
/* octal */
do {
if (c == '_') continue;
@@ -5731,7 +5731,7 @@ retry:
yylval.val = rb_str2inum(tok(), 8);
return tINTEGER;
}
- else if (c > '7' && c <= '9') {
+ if (c > '7' && c <= '9') {
yyerror("Illegal octal digit");
}
else if (c == '.') {