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

* numeric.c (num_to_int): default to_int implementaion for every

numeric class.

* re.c (rb_reg_quote): initial part of the string was never copied
  to the quoted string.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2002-07-29 06:14:10 +00:00
parent 448610abec
commit 89dbf99bac
7 changed files with 31 additions and 19 deletions

View file

@ -104,7 +104,7 @@ module IRB
def EXCB.install_extend_commands
for args in @EXTEND_COMMANDS
def_extend_command *args
def_extend_command(*args)
end
end
@ -193,7 +193,7 @@ module IRB
def CE.install_extend_commands
for args in @EXTEND_COMMANDS
def_extend_command *args
def_extend_command(*args)
end
end

View file

@ -737,7 +737,7 @@ class RubyLex
def identify_identifier
token = ""
if peek(0) =~ /[$@]/
token.concat (c = getc)
token.concat(c = getc)
if c == "@" and peek(0) == "@"
token.concat getc
end