aboutsummaryrefslogtreecommitdiffstats
path: root/bignum.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-19 14:00:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-19 14:00:26 +0000
commitef37d178bbe00cd429cedb9b4ec4f7982bedcc2a (patch)
tree273a2241f0eafd80cab60625d7f01092dac9a089 /bignum.c
parent6895e77ffc3029b83985b0cbfea26dbe2bc1e7b0 (diff)
downloadruby-ef37d178bbe00cd429cedb9b4ec4f7982bedcc2a.tar.gz
bignum.c: suppress warning
* bignum.c (absint_numwords_generic): suppress false warning in rb_absint_numwords() by gcc 4.4. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index 2c8c97685b..bced660134 100644
--- a/bignum.c
+++ b/bignum.c
@@ -3336,8 +3336,12 @@ absint_numwords_generic(size_t numbytes, int nlz_bits_in_msbyte, size_t word_num
sign = bary_pack(+1, BARY_ARGS(div_bary), &numwords, 1, sizeof(numwords), 0,
INTEGER_PACK_NATIVE_BYTE_ORDER);
- if (sign == 2)
+ if (sign == 2) {
+#if defined __GNUC__ && (__GNUC__ == 4 && __GNUC_MINOR__ == 4)
+ *nlz_bits_ret = 0;
+#endif
return (size_t)-1;
+ }
*nlz_bits_ret = nlz_bits;
return numwords;
}