]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/pcase.el (pcase--u1): Fix bignums
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 25 Oct 2018 15:19:05 +0000 (11:19 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 25 Oct 2018 15:19:05 +0000 (11:19 -0400)
Use 'eql' to compare integers

lisp/emacs-lisp/pcase.el

index 4a69244d265b5062435aa90b4ddef9acc47dc236..57c2d6c3cb5e5410a402dc338f6fe02928fb3fa2 100644 (file)
@@ -870,7 +870,8 @@ Otherwise, it defers to REST which is a list of branches of the form
                (else-rest (cdr splitrest)))
           (pcase--if (cond
                       ((null val) `(null ,sym))
-                      ((or (integerp val) (symbolp val))
+                      ((integerp val) `(eql ,sym ,val))
+                      ((symbolp val)
                        (if (pcase--self-quoting-p val)
                            `(eq ,sym ,val)
                          `(eq ,sym ',val)))