From 0482ccccf53333add55810383aab546d1fddbc75 Mon Sep 17 00:00:00 2001 From: Lee Spector Date: Sun, 22 Nov 2020 22:05:42 -0500 Subject: [PATCH] Correct order of clauses for exec_if --- src/propeller/push/instructions/code.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propeller/push/instructions/code.cljc b/src/propeller/push/instructions/code.cljc index 405fdc9..84c34ef 100755 --- a/src/propeller/push/instructions/code.cljc +++ b/src/propeller/push/instructions/code.cljc @@ -124,7 +124,7 @@ :exec_if ^{:stacks #{:boolean :exec}} (fn [state] - (make-instruction state #(if %1 %3 %2) [:boolean :exec :exec] :exec))) + (make-instruction state #(if %1 %2 %3) [:boolean :exec :exec] :exec))) ;; If the top BOOLEAN is TRUE, leaves the first item on the EXEC stack to be ;; executed. Otherwise, it removes it. Acts as a NOOP unless there is at least