Skip to content

Commit

Permalink
Corrected from-string defmethod for the boolean type.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirherrbatka committed Feb 15, 2022
1 parent 7c3ede2 commit 6632193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/implementation.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@

(defmethod from-string ((type (eql 'boolean)) string start end)
(flet ((compare (a b)
(string= a b :start1 start :end2 end)))
(string= a b :start1 start :end1 end)))
(switch (string :test compare)
("1" t)
("0" nil)
Expand Down

0 comments on commit 6632193

Please sign in to comment.