aboutsummaryrefslogtreecommitdiffstats
path: root/prog/encodingexec.go
diff options
context:
space:
mode:
Diffstat (limited to 'prog/encodingexec.go')
-rw-r--r--prog/encodingexec.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/encodingexec.go b/prog/encodingexec.go
index 6ba68b37e..239ef3514 100644
--- a/prog/encodingexec.go
+++ b/prog/encodingexec.go
@@ -148,7 +148,7 @@ func (w *execContext) writeArg(arg *Arg) {
case ArgConst:
w.write(ExecArgConst)
w.write(arg.Size(arg.Type))
- w.write(arg.Val)
+ w.write(arg.Value(arg.Type))
case ArgResult:
w.write(ExecArgResult)
w.write(arg.Size(arg.Type))