1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y (yylex): 8 and 9 in octal integer should cause compile

error.  [ruby-dev:35729]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-08-02 06:51:53 +00:00
parent 91c03e7264
commit 05c96af27b
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sat Aug 2 15:51:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (yylex): 8 and 9 in octal integer should cause compile
error. [ruby-dev:35729]
Sat Aug 2 11:51:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* rubysig.h (CHECK_INTS): gives the chance to perform to deferred

View file

@ -3969,7 +3969,8 @@ yylex()
nondigit = c;
continue;
}
if (c < '0' || c > '7') break;
if (c < '0' || c > '9') break;
if (c > '7') goto invalid_octal;
nondigit = 0;
tokadd(c);
} while ((c = nextc()) != -1);
@ -3986,6 +3987,7 @@ yylex()
}
}
if (c > '7' && c <= '9') {
invalid_octal:
yyerror("Illegal octal digit");
}
else if (c == '.' || c == 'e' || c == 'E') {