summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-10 05:13:56 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-10 05:13:56 +0000
commitc76b8fcac1c52d3163219d6f55867235a9ee4740 (patch)
tree12fa8f0115b89775135b97943276c4254bf0ac34 /time.c
parentfe0d339c2c83943445b5f8e1136cc91587afa605 (diff)
* time.c (rb_big_abs_find_minbit): get rid of a warning of VC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27719 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 62e4235603..1b461bbb34 100644
--- a/time.c
+++ b/time.c
@@ -345,7 +345,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 & -d)));
+ res = add(res, LONG2FIX(bdigit_find_maxbit(d & (~d+1))));
return res;
}