Issue #8522 has been updated by drbrain (Eric Hodel).

File bignum.c.bug8522.patch added

This patch changes int nlp_bits to size_t nlp_bits, but I don't know enough about bignum.c to know if this is appropriate.
----------------------------------------
Bug #8522: r41264 causes "implicit conversion loses integer precision" on clang
https://bugs.ruby-lang.org/issues/8522#change-39896

Author: drbrain (Eric Hodel)
Status: Assigned
Priority: Normal
Assignee: akr (Akira Tanaka)
Category: core
Target version: current: 2.1.0
ruby -v: -
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


=begin
  compiling ../trunk/bignum.c
  ../trunk/bignum.c:1128:46: error: implicit conversion loses integer precision:
        'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
      *nlp_bits_ret = num_bdigits * BITSPERDIG - num_bits;
                    ~ ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
  1 error generated.
  make: *** [bignum.o] Error 1



=end



-- 
http://bugs.ruby-lang.org/