mpf_fits_u*_p treatment of negative values greater than -1.0

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

On Fri, 22 Nov 2013, sisyphus1 at 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:

wasn't backported to the gmp-5.1 branch.

Marc Glisse

More information about the gmp-bugs mailing list