From f3ca267a93ae98762d4a81717e7167eb027898bd Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 9 Dec 2021 16:32:03 +0100 Subject: [PATCH] EVAL can eval anything --- lib/core/branch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/branch.rb b/lib/core/branch.rb index 028d67c..93e816e 100644 --- a/lib/core/branch.rb +++ b/lib/core/branch.rb @@ -35,7 +35,7 @@ module Rpl # similar to if-then-else-end, ifte def ifte( stack, dictionary ) - stack, args = Rpl::Lang::Core.stack_extract( stack, [%i[program word], %i[program word], %i[boolean]] ) + stack, args = Rpl::Lang::Core.stack_extract( stack, [:any, :any, %i[boolean]] ) stack << args[ args[2][:value] ? 1 : 0 ]