[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 02f5a41: Pacify buggy old GCC with a cast
From: |
Paul Eggert |
Subject: |
master 02f5a41: Pacify buggy old GCC with a cast |
Date: |
Wed, 6 May 2020 14:02:02 -0400 (EDT) |
branch: master
commit 02f5a419fdcfb3fb6c8a3e4debe7224010b40227
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
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
---
src/bignum.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/bignum.h b/src/bignum.h
index ad9021f..4a906c3 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);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 02f5a41: Pacify buggy old GCC with a cast,
Paul Eggert <=