зеркало из https://github.com/github/ruby.git
* ext/tk/lib/tk/variable.rb: TkVariable#*(other) and /(other) have a
bug on handling of the "other" value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
f22a307d7e
Коммит
cbad6bc357
|
@ -1,3 +1,8 @@
|
|||
Sat Nov 14 03:35:29 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tk/lib/tk/variable.rb: TkVariable#*(other) and /(other) have a
|
||||
bug on handling of the "other" value.
|
||||
|
||||
Fri Nov 13 21:18:15 2009 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* ext/zlib/zlib.c (rb_zlib_adler32): fix typo.
|
||||
|
|
|
@ -1218,7 +1218,7 @@ end
|
|||
end
|
||||
end
|
||||
def *(other)
|
||||
num_or_str(self._value) * other.to_i
|
||||
num_or_str(self._value) * other
|
||||
#begin
|
||||
# number(self._value) * other
|
||||
#rescue
|
||||
|
@ -1229,7 +1229,7 @@ end
|
|||
number(self._value) / other
|
||||
end
|
||||
def %(other)
|
||||
num_or_str(self._value) % other.to_i
|
||||
num_or_str(self._value) % other
|
||||
#begin
|
||||
# number(self._value) % other
|
||||
#rescue
|
||||
|
|
Загрузка…
Ссылка в новой задаче