diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-08 13:31:35 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-08 13:31:35 +0000 |
commit | 874f10cbf214e915dfc38930d03b251379bd4202 (patch) | |
tree | 21a6859735f7d9a7a62c50e09d4b2ae7a8f55fbd /time.c | |
parent | e431c67ea71a067eeb5ece0d2e64d1791af4d141 (diff) | |
download | ruby-874f10cbf214e915dfc38930d03b251379bd4202.tar.gz |
* time.c (v2w): Use rb_absint_size instead of RBIGNUM_LEN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -326,7 +326,7 @@ v2w(VALUE v) return WIDEVAL_WRAP((WIDEVALUE)(SIGNED_WIDEVALUE)(long)v); } else if (RB_TYPE_P(v, T_BIGNUM) && - RBIGNUM_LEN(v) * sizeof(BDIGIT) <= sizeof(WIDEVALUE)) { + rb_absint_size(v, NULL) <= sizeof(WIDEVALUE)) { return v2w_bignum(v); } #endif |