Skip to content

Commit

Permalink
Fixed error occuring in SEQ-TYPE when applied to empty strings and ve…
Browse files Browse the repository at this point in the history
…ctors. (Was causing failure in test APPLY-PATCH after fixes to GitHub issue #5.)
  • Loading branch information
agrostis committed May 3, 2021
1 parent c15ffab commit 702604b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.lisp
Expand Up @@ -47,7 +47,7 @@
((stringp x) 'string)
((vectorp x) 'vector)
(t (error "Not a sequence")))
(if (not (null x))
(if (if (listp x) (not (null x)) (plusp (length x)))
(let ((x0 (elt x 0)))
(if (typep x0 'sequence)
(seq-type x0)
Expand Down

0 comments on commit 702604b

Please sign in to comment.