Skip to content

Commit 19287e1

Browse files
committed
lint: prefer char=
1 parent 618ebc3 commit 19287e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

transducers/utils.lisp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ separator character."
7070
(declare (type fixnum start end))
7171
(cond ((and (< start 0) (< end 0)) acc)
7272
;; The separator was found at the very start of the string.
73-
((and (zerop start) (eql separator (char string start)))
73+
((and (zerop start) (char= separator (char string start)))
7474
(cl:cons "" (cl:cons (subseq string (1+ start) (1+ end)) acc)))
7575
;; We got to the beginning without seeing another separator.
7676
((zerop start) (cl:cons (subseq string start (1+ end)) acc))
7777
;; Normal separator detection: collect the piece we've built.
78-
((eql separator (char string start))
78+
((char= separator (char string start))
7979
(recurse (cl:cons (subseq string (1+ start) (1+ end)) acc)
8080
(1- start)
8181
(1- start)))

0 commit comments

Comments
 (0)