emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 9e15df2: Avoid fixnum round trip in prefix-numeric-


From: Paul Eggert
Subject: [Emacs-diffs] master 9e15df2: Avoid fixnum round trip in prefix-numeric-value
Date: Sun, 20 Oct 2019 20:41:12 -0400 (EDT)

branch: master
commit 9e15df208c19ca5aafd33a6cf801e7183543480e
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Avoid fixnum round trip in prefix-numeric-value
    
    * src/callint.c (Fprefix_numeric_value): Simplify.
---
 src/callint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/callint.c b/src/callint.c
index 449b504..9d5767a 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -798,7 +798,7 @@ Its numeric meaning is what you would get from 
`(interactive "p")'.  */)
   else if (EQ (raw, Qminus))
     XSETINT (val, -1);
   else if (CONSP (raw) && FIXNUMP (XCAR (raw)))
-    XSETINT (val, XFIXNUM (XCAR (raw)));
+    val = XCAR (raw);
   else if (FIXNUMP (raw))
     val = raw;
   else



reply via email to

[Prev in Thread] Current Thread [Next in Thread]