]> git.eshelyaron.com Git - emacs.git/commitdiff
Pacify buggy old GCC with a cast
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 May 2020 17:57:18 +0000 (10:57 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 May 2020 18:01:57 +0000 (11:01 -0700)
* 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

src/bignum.h

index ad9021f15fd22708ac6798a5707b5189ebf2bfd6..4a906c3c0eb3562ebd5adac2e6475f7ca6c65b2b 100644 (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);
 }