Skip to content

Commit ef37d17

Browse files
committed
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
1 parent 6895e77 commit ef37d17

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bignum.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3336,8 +3336,12 @@ absint_numwords_generic(size_t numbytes, int nlz_bits_in_msbyte, size_t word_num
33363336
sign = bary_pack(+1, BARY_ARGS(div_bary), &numwords, 1, sizeof(numwords), 0,
33373337
INTEGER_PACK_NATIVE_BYTE_ORDER);
33383338

3339-
if (sign == 2)
3339+
if (sign == 2) {
3340+
#if defined __GNUC__ && (__GNUC__ == 4 && __GNUC_MINOR__ == 4)
3341+
*nlz_bits_ret = 0;
3342+
#endif
33403343
return (size_t)-1;
3344+
}
33413345
*nlz_bits_ret = nlz_bits;
33423346
return numwords;
33433347
}

0 commit comments

Comments
 (0)