diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-21 18:49:13 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-21 18:49:13 +0000 |
commit | 9ee7875162df5d55fcb56a36e39efa45894de6b3 (patch) | |
tree | c3e4f07434f20f0217eaf0eb8abdb9d1fd9d890f /ChangeLog | |
parent | fbc6ea6c95f8f8fd2d6f3e6adb49f13c7031860b (diff) | |
download | ruby-9ee7875162df5d55fcb56a36e39efa45894de6b3.tar.gz |
* include/ruby/ruby.h (NUM2LONG): make it inline function to evaluete
the argument only once.
`t = Object.new; def t.*(x) p x; 0 end; p Time.at(0, t)' did print x
twice.
(NUM2INT): ditto.
(NUM2LL): ditto.
(INT2NUM): make it inline function.
(LONG2NUM): ditto.
(UINT2NUM): ditto.
(ULONG2NUM): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,16 @@ +Fri Aug 22 03:19:41 2008 Tanaka Akira <akr@fsij.org> + + * include/ruby/ruby.h (NUM2LONG): make it inline function to evaluete + the argument only once. + `t = Object.new; def t.*(x) p x; 0 end; p Time.at(0, t)' did print x + twice. + (NUM2INT): ditto. + (NUM2LL): ditto. + (INT2NUM): make it inline function. + (LONG2NUM): ditto. + (UINT2NUM): ditto. + (ULONG2NUM): ditto. + Fri Aug 22 03:03:22 2008 Tanaka Akira <akr@fsij.org> * io.c (rb_io_s_sysopen): mode can be a Bignum. |