pc(1): always allocate at least one mpdigit (itomp assumes this)

front
aiju 2018-05-03 14:06:15 +01:00
parent 2cfc72db76
commit 98a5fc6535
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ numalloc(void)
r = emalloc(sizeof(Num));
r->ref = 1;
r->p = emalloc(0);
r->p = emalloc(sizeof(mpdigit));
mpassign(mpzero, r);
return r;
}