]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid fixnum round trip in prefix-numeric-value
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Oct 2019 00:40:43 +0000 (17:40 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Oct 2019 00:41:07 +0000 (17:41 -0700)
* src/callint.c (Fprefix_numeric_value): Simplify.

src/callint.c

index 449b50486093b8e0caf32b901e2678a75fcd34ab..9d5767a21fee16cd67a7a72953ace7ad880880f1 100644 (file)
@@ -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