1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* bignum.c (rb_big2ull): add a cast to get rid of a VC++ warning.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2011-11-16 01:27:15 +00:00
parent 12bde2dfab
commit 5db50ed02d
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Wed Nov 16 10:26:41 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* bignum.c (rb_big2ull): add a cast to get rid of a VC++ warning.
Wed Nov 16 09:39:27 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/minitest/unit.rb (assert_raises): experimental fix to run

View file

@ -1258,7 +1258,7 @@ rb_big2ull(VALUE x)
unsigned LONG_LONG num = big2ull(x, "unsigned long long");
if (!RBIGNUM_SIGN(x)) {
LONG_LONG v = -num;
LONG_LONG v = -(LONG_LONG)num;
/* FIXNUM_MIN-1 .. LLONG_MIN mapped into 0xbfffffffffffffff .. LONG_MAX+1 */
if ((unsigned LONG_LONG)v <= LLONG_MAX)