Skip to content

Commit

Permalink
Fix types for ~or! and ~and!
Browse files Browse the repository at this point in the history
These were previously marked with `@bool` / `:@boolean` when they are, in
fact, loobean operators.  Fixed now.
  • Loading branch information
DavePearce committed Dec 18, 2023
1 parent e8560f5 commit 80d014a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stdlib.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
(defpurefun (and a b) (* a b))
(defpurefun ((~and :@bool) a b) (~ (and a b)))
(defpurefun ((and! :@loob) a b) (+ a b))
(defpurefun ((~and! :@bool) a b) (~ (and! a b)))
(defpurefun ((~and! :@loob) a b) (~ (and! a b)))

(defpurefun (or a b) (+ a b))
(defpurefun ((~or :@boolean) a b) (~ (or a b)))
(defpurefun ((or! :@loob) a b) (* a b))
(defpurefun ((~or! :@boolean) a b) (~ (or! a b)))
(defpurefun ((~or! :@loob) a b) (~ (or! a b)))

(defpurefun ((not :@boolean :nowarn) (x :binary)) (- 1 x))

Expand Down

0 comments on commit 80d014a

Please sign in to comment.