summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_transcode.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-21 18:49:13 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-21 18:49:13 +0000
commit8d4776a12d2223393c303e65772232f62a400485 (patch)
treec3e4f07434f20f0217eaf0eb8abdb9d1fd9d890f /test/ruby/test_transcode.rb
parent595309d50304bebcc586dea8dd6e9dce6d8f21ed (diff)
downloadruby-8d4776a12d2223393c303e65772232f62a400485.tar.gz
ruby-8d4776a12d2223393c303e65772232f62a400485.tar.xz
ruby-8d4776a12d2223393c303e65772232f62a400485.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@18762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_transcode.rb')
0 files changed, 0 insertions, 0 deletions