diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-15 02:27:29 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-15 02:27:29 +0000 |
commit | 2fab242f668d719b319d155e3bfad2987117dd29 (patch) | |
tree | 551e5048d5359375ec562a5a2b8c425e189a2c87 /random.c | |
parent | 5bf96101305c9113122fe32935088613da3c2c50 (diff) | |
download | ruby-2fab242f668d719b319d155e3bfad2987117dd29.tar.gz |
* eval.c (rb_yield_0): should not re-submit TAG_BREAK if this
yield is not break destination. [ruby-dev:23197]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
-rw-r--r-- | random.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -266,7 +266,7 @@ rb_f_rand(argc, argv, obj) vmax = rb_Integer(vmax); if (TYPE(vmax) == T_BIGNUM) goto bignum; case T_FIXNUM: - max = NUM2LONG(vmax); + max = FIX2LONG(vmax); break; } |