aboutsummaryrefslogtreecommitdiffstats
path: root/prog/encodingexec.go
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@gmail.com>2016-10-13 15:42:24 +0200
committerGitHub <noreply@github.com>2016-10-13 15:42:24 +0200
commita73bffcc27225bb79190a18b61f3baa7c7915d51 (patch)
tree62bdc187b4195e3ed90992f0f5c477776a56a692 /prog/encodingexec.go
parent752469137fa1a440a85a29479a71b8d30bfce756 (diff)
parente4edb0e20b90350779b319f60f0d7878ef423e4f (diff)
Merge pull request #83 from xairy/big-endian
Add big-endian ints
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))