[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 780509f: Improve bignum_integer static checking
From: |
Andreas Schwab |
Subject: |
Re: master 780509f: Improve bignum_integer static checking |
Date: |
Wed, 06 May 2020 08:57:28 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux) |
On Aug 18 2019, Paul Eggert wrote:
> diff --git a/src/bignum.h b/src/bignum.h
> index 743a18f..a9c7a0a 100644
> --- a/src/bignum.h
> +++ b/src/bignum.h
> @@ -83,7 +83,7 @@ mpz_set_uintmax (mpz_t result, uintmax_t v)
> /* Return a pointer to an mpz_t that is equal to the Lisp integer I.
> If I is a bignum this returns a pointer to I's representation;
> otherwise this sets *TMP to I's value and returns TMP. */
> -INLINE mpz_t *
> +INLINE mpz_t const *
> bignum_integer (mpz_t *tmp, Lisp_Object i)
> {
> if (FIXNUMP (i))
bignum.h: In function ‘bignum_integer’:
bignum.h:111:7: warning: return from incompatible pointer type [enabled by
default]
return tmp;
^
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
- Re: master 780509f: Improve bignum_integer static checking,
Andreas Schwab <=