summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-16 01:27:15 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-16 01:27:15 +0000
commit5db50ed02d97de08c47f4abe1edf47e87b500314 (patch)
tree3edc3c1e6209d9ea6bbc8d37de80a4de039bf1ee /bignum.c
parent12bde2dfabc3492d490e6c53628cf8cdf04495ff (diff)
* 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index 7f47cf6efb..a1c4ac78a0 100644
--- a/bignum.c
+++ b/bignum.c
@@ -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)