1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-11 14:21:10 +02:00

(INTEGRAL2BIG): WORDS_BIGENDIAN not right for word

order parameter to mpz_import, in fact with just one word there's no
order to worry about at all.
This commit is contained in:
Kevin Ryde 2004-02-18 00:25:39 +00:00
parent 48dc9f349d
commit 29c560674b

View file

@ -204,15 +204,11 @@ INTEGRAL2BIG (ITYPE n)
#endif
mpz_import (SCM_I_BIG_MPZ (result),
1,
#ifdef WORDS_BIGENDIAN
1,
#else
-1,
#endif
SIZEOF_ITYPE,
0,
0,
1, /* one word */
1, /* word order irrelevant when just one word */
SIZEOF_ITYPE, /* word size */
0, /* native endianness within word */
0, /* no nails */
&n);
/* mpz_import doesn't handle sign */