From c96524a7b4d07d4411207126d7e5a81ad8d15c96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Fri, 13 Sep 1996 02:33:07 +0200 Subject: [PATCH] small bugfix Rev: src/modules/gmpmod/mpz_glue.c:1.5 --- src/modules/gmpmod/mpz_glue.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/gmpmod/mpz_glue.c b/src/modules/gmpmod/mpz_glue.c index 944861b340..d13479dc7d 100644 --- a/src/modules/gmpmod/mpz_glue.c +++ b/src/modules/gmpmod/mpz_glue.c @@ -22,8 +22,8 @@ #include <gmp.h> -#define THIS (*(MP_INT **)(fp->current_storage)) -#define OBTOMPZ(o) (*(MP_INT **)(o->storage)) +#define THIS ((MP_INT *)(fp->current_storage)) +#define OBTOMPZ(o) ((MP_INT *)(o->storage)) static struct program *mpzmod_program; @@ -389,7 +389,7 @@ void init_gmpmod_programs(void) { #ifdef HAVE_GMP_H start_new_program(); - add_storage(sizeof(MP_INT *)); + add_storage(sizeof(MP_INT)); add_function("create",mpzmod_create,"function(void|string|int|float|object:void)",0); -- GitLab