changeset 3673:8ab0a7453577

(Fexpt): New local `val' for making integer to return.
author Richard M. Stallman <rms@gnu.org>
date Sat, 12 Jun 1993 07:19:24 +0000
parents 3eaec128c91e
children cfa45731460e
files src/floatfns.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/floatfns.c	Sat Jun 12 06:54:14 1993 +0000
+++ b/src/floatfns.c	Sat Jun 12 07:19:24 1993 +0000
@@ -406,7 +406,8 @@
       (XTYPE (arg2) == Lisp_Int)) /* don't promote, if both are ints */
     {				/* this can be improved by pre-calculating */
       int acc, x, y;		/* some binary powers of x then accumulating */
-      /* these, thereby saving some time. -wsr */
+      Lisp_Object val;
+
       x = XINT (arg1);
       y = XINT (arg2);
       acc = 1;
@@ -431,8 +432,8 @@
 	      y = (unsigned)y >> 1;
 	    }
 	}
-      XSET (x, Lisp_Int, acc);
-      return x;
+      XSET (val, Lisp_Int, acc);
+      return val;
     }
   f1 = (XTYPE (arg1) == Lisp_Float) ? XFLOAT (arg1)->data : XINT (arg1);
   f2 = (XTYPE (arg2) == Lisp_Float) ? XFLOAT (arg2)->data : XINT (arg2);