diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2020-05-06 10:57:18 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-05-06 11:01:57 -0700 |
| commit | 02f5a419fdcfb3fb6c8a3e4debe7224010b40227 (patch) | |
| tree | fbd069c218572d8512f5e56d80c1ea8b0880bc44 /src | |
| parent | 153241d664f45d832a4564bb53d7f75a0af2c35f (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/bignum.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bignum.h b/src/bignum.h index ad9021f15fd..4a906c3c0eb 100644 --- a/src/bignum.h +++ b/src/bignum.h @@ -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); } |
