summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-31 19:56:04 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-31 19:56:04 +0000
commitc97f5f514a63f2b5ed909aec270e89efb0c2703d (patch)
treecd37557dd0be4d212cc608f3657e414616c1d23d /time.c
parente758c3fbce1b3be14660fcd0d1492ad6e91e01d6 (diff)
* time.c (rb_big_abs_find_minbit): fix handling the last word.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27133 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 a3195e27a2..e36c33bdcb 100644
--- a/time.c
+++ b/time.c
@@ -343,7 +343,7 @@ rb_big_abs_find_minbit(VALUE big)
return Qnil;
res = mul(LONG2NUM(i), INT2FIX(SIZEOF_BDIGITS * CHAR_BIT));
d = ds[i];
- res = add(res, LONG2FIX(bdigit_find_maxbit(d)));
+ res = add(res, LONG2FIX(bdigit_find_maxbit(d & -d)));
return res;
}