mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
bigint.c (mpz_init_set): fully initialize mpz_t first.
This commit is contained in:
@@ -61,7 +61,7 @@ mpz_set(mrb_state *mrb, mpz_t *y, mpz_t *x)
|
||||
static void
|
||||
mpz_init_set(mrb_state *mrb, mpz_t *s, mpz_t *t)
|
||||
{
|
||||
s->p = NULL;
|
||||
mpz_init(mrb, s);
|
||||
mpz_set(mrb, s, t);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user