ruby-changes:31643
From: nobu <ko1@a...>
Date: Tue, 19 Nov 2013 23:00:31 +0900 (JST)
Subject: [ruby-changes:31643] nobu:r43722 (trunk): bignum.c: suppress warning
nobu 2013-11-19 23:00:26 +0900 (Tue, 19 Nov 2013) New Revision: 43722 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43722 Log: bignum.c: suppress warning * bignum.c (absint_numwords_generic): suppress false warning in rb_absint_numwords() by gcc 4.4. Modified files: trunk/bignum.c Index: bignum.c =================================================================== --- bignum.c (revision 43721) +++ bignum.c (revision 43722) @@ -3336,8 +3336,12 @@ absint_numwords_generic(size_t numbytes, https://github.com/ruby/ruby/blob/trunk/bignum.c#L3336 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; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/