src/parser/parser-expr-impl.lisp: Compare paren tags with `eql'.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 30 Aug 2015 09:58:38 +0000 (10:58 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 20 Sep 2015 13:15:40 +0000 (14:15 +0100)
They're often characters, which can't reliably be compared with `eq'.
Not sure what I was thinking, really.

src/parser/parser-expr-impl.lisp

index 5ae4035..41c154f 100644 (file)
          (let ((head (car opstack)))
            (cond ((not (typep head 'open-parenthesis))
                   (apply-operator head state))
-                 ((not (eq (slot-value head 'tag) tag))
+                 ((not (eql (slot-value head 'tag) tag))
                   (fail))
                  (t
                   (return)))