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:
parent
48dc9f349d
commit
29c560674b
1 changed files with 5 additions and 9 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue