mpf_fits_u*_p treatment of negative values greater than -1.0

Marc Glisse marc.glisse at inria.fr
Fri Nov 22 12:17:04 UTC 2013


On Fri, 22 Nov 2013, sisyphus1 at optusnet.com.au wrote:

> Hi,
>
> mpf_fits_ulong_p(), mpf_fits_uint_p() and mpf_fits_ushort_p() all return 
> false for negative values greater than -1.
>
> I believe they should return true for such values - as happens if I first 
> call mpf_trunc().

Works for me with the main repository. Looks like Marco's patch:
http://hg.gmplib.org:8000/gmp/rev/760dc4f2c44b

wasn't backported to the gmp-5.1 branch.

-- 
Marc Glisse


More information about the gmp-bugs mailing list