• Tom Tromey's avatar
    Fix bignum creation when EMACS_INT is wider than long · 76715f89
    Tom Tromey authored
    * src/alloc.c (mpz_set_intmax_slow, mpz_set_uintmax_slow): New
    functions.
    * src/data.c (arith_driver, Frem, Fmod, ash_lsh_impl, Fadd1)
    (Fsub1): Use mpz_set_intmax, mpz_set_uintmax.
    * src/emacs-module.c (module_make_integer): Use mpz_set_intmax.
    * src/floatfns.c (Fabs): Use mpz_set_intmax.
    * src/lisp.h (mpz_set_intmax, mpz_set_uintmax): New inline
    functions.
    (mpz_set_uintmax_slow, mpz_set_intmax_slow): Declare.
    76715f89
alloc.c 205 KB