diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-16 01:27:15 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-16 01:27:15 +0000 |
commit | 5db50ed02d97de08c47f4abe1edf47e87b500314 (patch) | |
tree | 3edc3c1e6209d9ea6bbc8d37de80a4de039bf1ee /bignum.c | |
parent | 12bde2dfabc3492d490e6c53628cf8cdf04495ff (diff) | |
download | ruby-5db50ed02d97de08c47f4abe1edf47e87b500314.tar.gz |
* 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
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |