From: Paul Eggert Date: Wed, 6 May 2020 17:57:18 +0000 (-0700) Subject: Pacify buggy old GCC with a cast X-Git-Tag: emacs-28.0.90~7424 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=02f5a419fdcfb3fb6c8a3e4debe7224010b40227;p=emacs.git 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 --- 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); }