From ee260caa0a85efeaa045d8345f67e02bc58a100b Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> Date: Wed, 6 Dec 2006 10:14:13 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'v1_8_5_6'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_8_5_6@11355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bignum.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bignum.c') diff --git a/bignum.c b/bignum.c index 6a7a83c085..493550ff98 100644 --- a/bignum.c +++ b/bignum.c @@ -99,7 +99,10 @@ static VALUE bignorm(x) VALUE x; { - if (!FIXNUM_P(x)) { + if (FIXNUM_P(x)) { + return x; + } + else if (TYPE(x) == T_BIGNUM) { long len = RBIGNUM(x)->len; BDIGIT *ds = BDIGITS(x); -- cgit v1.2.3