mpf_fits_u*_p treatment of negative values greater than -1.0
marc.glisse at inria.fr
Fri Nov 22 12:17:04 UTC 2013
On Fri, 22 Nov 2013, sisyphus1 at optusnet.com.au wrote:
> 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.
More information about the gmp-bugs