Skip to content
Snippets Groups Projects
Commit c96524a7 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

small bugfix

Rev: src/modules/gmpmod/mpz_glue.c:1.5
parent 0839bb1e
No related branches found
No related tags found
No related merge requests found
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
#include <gmp.h> #include <gmp.h>
#define THIS (*(MP_INT **)(fp->current_storage)) #define THIS ((MP_INT *)(fp->current_storage))
#define OBTOMPZ(o) (*(MP_INT **)(o->storage)) #define OBTOMPZ(o) ((MP_INT *)(o->storage))
static struct program *mpzmod_program; static struct program *mpzmod_program;
...@@ -389,7 +389,7 @@ void init_gmpmod_programs(void) ...@@ -389,7 +389,7 @@ void init_gmpmod_programs(void)
{ {
#ifdef HAVE_GMP_H #ifdef HAVE_GMP_H
start_new_program(); 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); add_function("create",mpzmod_create,"function(void|string|int|float|object:void)",0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment