summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-08 13:31:35 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-08 13:31:35 +0000
commit874f10cbf214e915dfc38930d03b251379bd4202 (patch)
tree21a6859735f7d9a7a62c50e09d4b2ae7a8f55fbd /time.c
parente431c67ea71a067eeb5ece0d2e64d1791af4d141 (diff)
downloadruby-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time.c b/time.c
index 81306bfe7a..61b9d3e1a8 100644
--- a/time.c
+++ b/time.c
@@ -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