summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-09 06:44:34 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-09 06:44:34 +0000
commit5cb4133e6719ba8b54f3bb5f838cd548288cedd0 (patch)
tree3547858c5bf05ad31472307fd110d35347644450 /random.c
parentbb4ade0ab6d298837891224d839026cc7c7c988a (diff)
* bignum.c (BIGZEROP): macro to determine if x is a bignum zero.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
-rw-r--r--random.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/random.c b/random.c
index b04bcdd..86c8198 100644
--- a/random.c
+++ b/random.c
@@ -215,11 +215,6 @@ rb_f_rand(argc, argv, obj)
vmax = rb_dbl2big(RFLOAT(vmax)->value);
/* fall through */
case T_BIGNUM:
- vmax = rb_big_norm(vmax);
- if (FIXNUM_P(vmax)) {
- max = FIX2INT(vmax);
- break;
- }
bignum:
{
long len = RBIGNUM(vmax)->len;