From 9dd95bf0b12c8ddba82acae741f944743e37cdd8 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Thu, 25 Oct 2018 11:19:05 -0400 Subject: [PATCH] * lisp/emacs-lisp/pcase.el (pcase--u1): Fix bignums Use 'eql' to compare integers --- lisp/emacs-lisp/pcase.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/pcase.el b/lisp/emacs-lisp/pcase.el index 4a69244d265..57c2d6c3cb5 100644 --- a/lisp/emacs-lisp/pcase.el +++ b/lisp/emacs-lisp/pcase.el @@ -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))) -- 2.39.5