aboutsummaryrefslogtreecommitdiffstats
path: root/prog/decodeexec.go
diff options
context:
space:
mode:
Diffstat (limited to 'prog/decodeexec.go')
-rw-r--r--prog/decodeexec.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/prog/decodeexec.go b/prog/decodeexec.go
index 81c70cb2b..e6921c314 100644
--- a/prog/decodeexec.go
+++ b/prog/decodeexec.go
@@ -293,9 +293,7 @@ func (dec *execDecoder) commitCall() {
dec.numVars = dec.call.Index + 1
}
for _, copyout := range dec.call.Copyout {
- if dec.numVars < copyout.Index+1 {
- dec.numVars = copyout.Index + 1
- }
+ dec.numVars = max(dec.numVars, copyout.Index+1)
}
dec.calls = append(dec.calls, dec.call)
dec.call = ExecCall{}