pc(1): reference counting bug
This commit is contained in:
parent
c69bf6e0bc
commit
dae5a44111
1 changed files with 2 additions and 0 deletions
|
@ -825,6 +825,7 @@ fntrunc(int, Num **a)
|
|||
numdecref(a[1]);
|
||||
return nil;
|
||||
}
|
||||
a[0] = nummod(a[0]);
|
||||
mptrunc(a[0], i, a[0]);
|
||||
return a[0];
|
||||
}
|
||||
|
@ -835,6 +836,7 @@ fnxtend(int, Num **a)
|
|||
int i;
|
||||
|
||||
if(toint(a[1], &i, 1)) return nil;
|
||||
a[0] = nummod(a[0]);
|
||||
mpxtend(a[0], i, a[0]);
|
||||
return a[0];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue