Another problem is in the test functions for the ux/sx functions, we use %lld in the format specifier for an intmax_t. This is only valid if intmax_t is actually a long long int, which it is not on some *nix platforms (ia64 for example).
C99 introduced a new format specifier (which I forgot already) for intmax_t. Of course this is only supported by C99 compilers. I hope MSVC is C99 compliant enough to have gotten this right, otherwise we have a lot of fiddling around to do. Bill. On 12 October 2012 20:34, Bill Hart <[email protected]> wrote: > That actually won't work. For C++ we must include stdint.h and not limits.h. > > Bill. > > On 12 October 2012 20:32, Brian Gladman <[email protected]> wrote: >> -----Original Message----- From: Bill Hart Sent: Friday, October 12, 2012 >> 8:30 PM To: [email protected] Subject: Re: [mpir-devel] MPIR 2.6.0 >> alpha1 released >> Oh no it doesn't, I made a mistake. It has #if defined( _STDINT_H ) || >> defined ( _STDINT_H_ ) || defined ( _STDINT ) >> >> ======================== >> I was about to query this :-) >> >> We will need to include limits.h to pick up LLONG_MAX >> >> >> Brian >> >> -- >> You received this message because you are subscribed to the Google Groups >> "mpir-devel" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/mpir-devel?hl=en. >> -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/mpir-devel?hl=en.
