1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-14 09:39:42 +00:00

Pacify buggy old GCC with a cast

* src/bignum.h (bignum_integer): Pacify GCC 4.8.5.
Problem reported by Andreas Schwab in:
https://lists.gnu.org/r/emacs-devel/2020-05/msg00781.html
This commit is contained in:
Paul Eggert 2020-05-06 10:57:18 -07:00
parent 153241d664
commit 02f5a419fd

View File

@ -108,7 +108,8 @@ bignum_integer (mpz_t *tmp, Lisp_Object i)
if (FIXNUMP (i))
{
mpz_set_intmax (*tmp, XFIXNUM (i));
return tmp;
/* The unnecessary cast pacifies a buggy GCC 4.8.5. */
return (mpz_t const *) tmp;
}
return xbignum_val (i);
}