From 1abf575c1cf36df59d0673c0e5d8b326f4526a8b Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sun, 16 Jul 2017 11:32:08 +0200 Subject: [PATCH] Update example with new constraints on map/reduce prototype. --- example/ex-array04.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/example/ex-array04.c b/example/ex-array04.c index 72b64326..5f234f7a 100644 --- a/example/ex-array04.c +++ b/example/ex-array04.c @@ -6,11 +6,11 @@ ARRAY_DEF(mpz, mpz_t, M_CLASSIC_OPLIST(mpz)) ALGO_DEF(array_mpz, ARRAY_OPLIST(mpz, M_CLASSIC_OPLIST(mpz))) -static inline void my_mpz_inc(mpz_t d, const mpz_t a){ - mpz_add(d, d, a); +static inline void my_mpz_inc(mpz_t *d, const mpz_t a){ + mpz_add(*d, *d, a); } -static inline void my_mpz_sqr(mpz_t d, const mpz_t a){ - mpz_mul(d, a, a); +static inline void my_mpz_sqr(mpz_t *d, const mpz_t a){ + mpz_mul(*d, a, a); } int main(void)