Skip to content

Commit

Permalink
Fix division by zero.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas de Grivel committed Jun 19, 2015
1 parent c42d452 commit 39d1519
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/squeeze.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
(:method ((op (eql :*)) (left number) (right number))
(* left right))
(:method ((op (eql :/)) (left number) (right number))
(/ left right))
(unless (zerop right)
(/ left right)))
(:method ((op (eql :<<)) (left number) (right number))
(ash left right))
(:method ((op (eql :>>)) (left number) (right number))
Expand Down

0 comments on commit 39d1519

Please sign in to comment.