Use latest aebytecode. (#36)

* Use latest aebytecode.

* Fix argument to dup instruction.
This commit is contained in:
Erik Stenman
2019-03-04 14:22:36 +01:00
committed by Erik Stenman
parent 5e6e607fa4
commit 7ae4a98360
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 }) ->