pc(1): always allocate at least one mpdigit (itomp assumes this)
This commit is contained in:
parent
2cfc72db76
commit
98a5fc6535
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ numalloc(void)
|
||||||
|
|
||||||
r = emalloc(sizeof(Num));
|
r = emalloc(sizeof(Num));
|
||||||
r->ref = 1;
|
r->ref = 1;
|
||||||
r->p = emalloc(0);
|
r->p = emalloc(sizeof(mpdigit));
|
||||||
mpassign(mpzero, r);
|
mpassign(mpzero, r);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue