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
This commit is contained in:
usa 2010-05-11 05:10:58 +00:00
parent 52583c34d1
commit cedb75e6a1
2 changed files with 5 additions and 1 deletions

View file

@ -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> 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 * win32/win32.c, include/ruby/win32.h (rb_w32_has_cancel_io): new

2
time.c
View file

@ -345,7 +345,7 @@ rb_big_abs_find_minbit(VALUE big)
return Qnil; return Qnil;
res = mul(LONG2NUM(i), INT2FIX(SIZEOF_BDIGITS * CHAR_BIT)); res = mul(LONG2NUM(i), INT2FIX(SIZEOF_BDIGITS * CHAR_BIT));
d = ds[i]; d = ds[i];
res = add(res, LONG2FIX(bdigit_find_maxbit(d & -d))); res = add(res, LONG2FIX(bdigit_find_maxbit(d & (~d-1))));
return res; return res;
} }