Skip to content

Commit

Permalink
Fixed bug in return_tagspace.
Browse files Browse the repository at this point in the history
  • Loading branch information
thelmuth committed Nov 29, 2012
1 parent 5b036d8 commit b7c42e1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/clojush/instructions/return.clj
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@
(define-registered (define-registered
return_tagspace return_tagspace
(fn [state] (fn [state]
(let [top-env (top-item :environment state) (if (empty? (:environment state))
new-env (assoc top-env :tag (:tag state))] state
(push-item new-env :environment (pop-item :environment state))))) (let [top-env (top-item :environment state)
new-env (assoc top-env :tag (:tag state))]
(push-item new-env :environment (pop-item :environment state))))))

0 comments on commit b7c42e1

Please sign in to comment.