diff options
| author | Paul Eggert | 2020-05-06 10:57:18 -0700 |
|---|---|---|
| committer | Paul Eggert | 2020-05-06 11:01:57 -0700 |
| commit | 02f5a419fdcfb3fb6c8a3e4debe7224010b40227 (patch) | |
| tree | fbd069c218572d8512f5e56d80c1ea8b0880bc44 /src | |
| parent | 153241d664f45d832a4564bb53d7f75a0af2c35f (diff) | |
| download | emacs-02f5a419fdcfb3fb6c8a3e4debe7224010b40227.tar.gz emacs-02f5a419fdcfb3fb6c8a3e4debe7224010b40227.zip | |
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) | |||
| 108 | if (FIXNUMP (i)) | 108 | if (FIXNUMP (i)) |
| 109 | { | 109 | { |
| 110 | mpz_set_intmax (*tmp, XFIXNUM (i)); | 110 | mpz_set_intmax (*tmp, XFIXNUM (i)); |
| 111 | return tmp; | 111 | /* The unnecessary cast pacifies a buggy GCC 4.8.5. */ |
| 112 | return (mpz_t const *) tmp; | ||
| 112 | } | 113 | } |
| 113 | return xbignum_val (i); | 114 | return xbignum_val (i); |
| 114 | } | 115 | } |