Two possibly relevant warnings in mpn/udiv_w_sdiv.c

Torbjorn Granlund tg at gmplib.org
Mon Nov 28 23:25:04 CET 2011


Marian Kechlibar <marian.kechlibar at circletech.net> writes:

  It is ARM compiler (RVCT) 2.2, and the warning is
  
              #68-D: integer conversion resulted in a change of sign
  
  which is what I would expect. The warning can be suppressed with an
  explicit cast like this:
  
            q = (mp_limb_t) -1;
  
  I tried compiling the same code with GCC 4.4, it didn't give me any
  warnings.
  
I pushed a change, making use of the CNST_LIMB macro.

-- 
Torbjörn


More information about the gmp-devel mailing list