* lisp/emacs-lisp/pcase.el (pcase--u1): Fix bignums

Use 'eql' to compare integers
This commit is contained in:
Stefan Monnier 2018-10-25 11:19:05 -04:00
parent f1f1687fcd
commit 9dd95bf0b1

View 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)))