diff options
Diffstat (limited to 'src/parserfunc.c')
-rw-r--r-- | src/parserfunc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/parserfunc.c b/src/parserfunc.c index 4ef55d2..ff5c6f4 100644 --- a/src/parserfunc.c +++ b/src/parserfunc.c @@ -595,9 +595,15 @@ pf_do_x_pow_y_int(ParseNode* self) } if (self->right->token != NULL) + { pow = super_atoi(self->right->token->string); + } else - pow = mp_to_integer((MPNumber*) (*(self->right->evaluate))(self->right)); + { + MPNumber* aux = (MPNumber*) (*(self->right->evaluate))(self->right); + pow = mp_to_integer(aux); + mp_free(aux); + } if(!val) { |