diff options
author | aiju <devnull@localhost> | 2018-12-13 10:38:21 +0000 |
---|---|---|
committer | aiju <devnull@localhost> | 2018-12-13 10:38:21 +0000 |
commit | dae5a44111dfb21a714824a5cec2abee4f9f9080 (patch) | |
tree | b62c58f7d5ac7e465964566895979e4a0e384735 /sys/src/cmd/pc.y | |
parent | c69bf6e0bc573a72c2e9f03155daa2f47e357436 (diff) |
pc(1): reference counting bug
Diffstat (limited to 'sys/src/cmd/pc.y')
-rw-r--r-- | sys/src/cmd/pc.y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/cmd/pc.y b/sys/src/cmd/pc.y index 7592f578b..6d828f8a2 100644 --- a/sys/src/cmd/pc.y +++ b/sys/src/cmd/pc.y @@ -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]; } |