* lisp/emacs-lisp/pcase.el (pcase--u1): Fix bignums
Use 'eql' to compare integers
This commit is contained in:
parent
f1f1687fcd
commit
9dd95bf0b1
1 changed files with 2 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue