From 7ae4a983600e13b22eb5d1c58b0b0fa62af8539b Mon Sep 17 00:00:00 2001 From: Erik Stenman Date: Mon, 4 Mar 2019 14:22:36 +0100 Subject: [PATCH] Use latest aebytecode. (#36) * Use latest aebytecode. * Fix argument to dup instruction. --- rebar.config | 2 +- rebar.lock | 2 +- src/aeso_icode_to_fate.erl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rebar.config b/rebar.config index c417d17..f45de79 100644 --- a/rebar.config +++ b/rebar.config @@ -3,7 +3,7 @@ {erl_opts, [debug_info]}. {deps, [ {aebytecode, {git, "https://github.com/aeternity/aebytecode.git", - {tag,"v2.0.1"}}} + {ref,"2369533"}}} , {getopt, "1.0.1"} , {jsx, {git, "https://github.com/talentdeficit/jsx.git", {tag, "2.8.0"}}} diff --git a/rebar.lock b/rebar.lock index 3dd07ed..58e905c 100644 --- a/rebar.lock +++ b/rebar.lock @@ -1,7 +1,7 @@ {"1.1.0", [{<<"aebytecode">>, {git,"https://github.com/aeternity/aebytecode.git", - {ref,"01ae99f7e8be7917d213e1ef04dc6d613a046b98"}}, + {ref,"23695330ef1767c78193f330c3c3effdb76d4045"}}, 0}, {<<"jsx">>, {git,"https://github.com/talentdeficit/jsx.git", diff --git a/src/aeso_icode_to_fate.erl b/src/aeso_icode_to_fate.erl index 09aaf51..245d8d7 100644 --- a/src/aeso_icode_to_fate.erl +++ b/src/aeso_icode_to_fate.erl @@ -95,7 +95,7 @@ to_scode(_Env, #integer{ value = N }) -> to_scode(Env, #var_ref{name = X}) -> case lookup_var(Env, X) of false -> error({unbound_variable, X, Env}); - {stack, N} -> [aeb_fate_code:dup(N)]; + {stack, N} -> [aeb_fate_code:dup(?i(N))]; {arg, N} -> [aeb_fate_code:push({arg, N})] end; to_scode(Env, #binop{ op = Op, left = A, right = B }) ->