summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-11 05:10:58 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-11 05:10:58 +0000
commitcedb75e6a1025b72ee155fcc54d95650e079c2c1 (patch)
tree59c7bba73e704db8f21145ef0c8fbbe28b7a14c6
parent52583c34d1d16ecb33d3d3425dd1d56bebc22e18 (diff)
merge from trunk (r27719)
* time.c (rb_big_abs_find_minbit): get rid of a warning of VC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--time.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 112c5d1c43..ba82ec467f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue May 11 14:10:36 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * time.c (rb_big_abs_find_minbit): get rid of a warning of VC.
+
Tue May 11 14:09:21 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c, include/ruby/win32.h (rb_w32_has_cancel_io): new
diff --git a/time.c b/time.c
index 62e4235603..7bd5c28cb3 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;
}