Ciao, Il Gio, 3 Febbraio 2022 8:50 am, Niels Möller ha scritto: > George Woltman <wolt...@alum.mit.edu> writes:
>> I get this compiler warning calling mpz_tstbit: warning C4244: >> 'argument': >> conversion from 'uint64_t' to 'mp_bitcnt_t', possible loss of data >> Yes, I'm creating mpz values with more than 4 billion bits. > > That's kind-of difficult. I agree it would make sense to increase size > of mp_bitcnt_t (perhaps ptrdiff_t would be a reasonable and portable > definition?), but it's going to be an ABI break platforms where that's an > actual change of size. Torbjörn, should this be listed under the things > to fix once we decide to break ABI compatibility? On https://gmplib.org/devel/incompatibility we have the following line: Consider making mp_bitcnt_t a 64-bit integer also on 32-bit hosts. We should consider the windos64 case as well. Ĝis, m _______________________________________________ gmp-bugs mailing list gmp-bugs@gmplib.org https://gmplib.org/mailman/listinfo/gmp-bugs