Skip to content

Commit 9d0b56b

Browse files
author
Marco Bodrato
committed
gen-fib.c: cast malloc'd pointer
1 parent e919f96 commit 9d0b56b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gen-fib.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ generate (int numb_bits)
4545

4646
/* fib(2n) > 2^n, so use 2n as a limit for the table size */
4747
falloc = 2 * numb_bits;
48-
f = xmalloc (falloc * sizeof (*f));
48+
f = (mpz_t*) xmalloc (falloc * sizeof (*f));
4949

5050
mpz_init_set_ui (f[0], 1L); /* F[-1] */
5151
mpz_init_set_ui (f[1], 0L); /* F[0] */

0 commit comments

Comments
 (0)