diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-06-09 13:39:35 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-06-09 13:39:35 +0000 |
commit | a6d0602e82ce9788ccc2cb53f69bc87af31a966d (patch) | |
tree | d21be84cdfa6df9a0f3a2f4894499178b3912bd8 | |
parent | c65d9ccdc2eccb0ccaf6efe00789f1bd4bdeba10 (diff) | |
download | mpfr-a6d0602e82ce9788ccc2cb53f69bc87af31a966d.tar.gz |
[src/get_ld.c] Fixed build failure with GMP_NUMB_BITS == 8 due to the
use of uint64_t in src/get_ld.c, while <stdint.h> was not included:
replaced it by "unsigned long long", which does not need a specific
header (an exact 64-bit type is not needed, we just need at least a
64-bit width, which unsigned long long is guaranteed to have).
Note: unsigned long long may not be available with a pre-C99 compiler,
but this is not worse than uint64_t. This limitation is currently OK
as GMP_NUMB_BITS == 8 support is just for testing.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13950 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | src/get_ld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/get_ld.c b/src/get_ld.c index 9e722bfcf..6b6a5b9df 100644 --- a/src/get_ld.c +++ b/src/get_ld.c @@ -151,7 +151,7 @@ mpfr_get_ld (mpfr_srcptr x, mpfr_rnd_t rnd_mode) } #elif GMP_NUMB_BITS == 8 { - uint64_t mant = 0; + unsigned long long mant = 0; int i; for (i = 0; i < 8; i++) mant |= ((unsigned long) tmpmant[i] << (8*i)); |