turtle/tlang: fix binary operators being backwards

This commit is contained in:
cron 2020-11-06 23:39:49 +00:00
parent 4c2a89bba9
commit 05833e9f24

View File

@ -304,7 +304,7 @@ function tlang.binary(func)
local tos = statepop_num(state)
local tos1 = statepop_num(state)
statepush_num(state, func(tos.value, tos1.value))
statepush_num(state, func(tos1.value, tos.value))
end
end