diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-06-10 10:06:12 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-06-10 10:06:12 +0000 |
| commit | 1132d84b00ad971e588dfa80efd6a8bd1d3471ca (patch) | |
| tree | da845161834c93006e9cc919b54e85cf892e3d92 /parse.y | |
| parent | f230b737bda43b1d4e8424418c7567c860978762 (diff) | |
| download | ruby-1132d84b00ad971e588dfa80efd6a8bd1d3471ca.tar.gz ruby-1132d84b00ad971e588dfa80efd6a8bd1d3471ca.tar.xz ruby-1132d84b00ad971e588dfa80efd6a8bd1d3471ca.zip | |
* numeric.c (fix_lshift): negative shift count means right shift.
* numeric.c (fix_rshift): return -1 when left side operand is
negative.
* parse.y (yylex): `0_' should be an error. (ruby-bugs-ja:PR#239)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -3491,6 +3491,10 @@ yylex() yylval.val = rb_cstr_to_inum(tok(), 8, Qfalse); return tINTEGER; } + if (nondigit) { + pushback(c); + goto trailing_uc; + } } if (c > '7' && c <= '9') { yyerror("Illegal octal digit"); |
