# HG changeset patch # User Jim Blandy # Date 720508798 0 # Node ID bef6b6903528324d2138f31ed70cea0b751db4a2 # Parent ff88f962a9829e5d47cc9474ee4e118207b8267d * floatfns.c (Flog): Don't forget to declare the BASE argument a Lisp_Object. * floatfns.c (Fexpt): Don't return the value of the XSET function call; that's not guaranteed to be the value assigned. diff -r ff88f962a982 -r bef6b6903528 src/floatfns.c --- a/src/floatfns.c Sat Oct 31 05:18:48 1992 +0000 +++ b/src/floatfns.c Sat Oct 31 05:19:58 1992 +0000 @@ -292,7 +292,8 @@ for (; y > 0; y--) acc *= x; } - return XSET (x, Lisp_Int, acc); + XFASTINT (x) = acc; + return x; } f1 = (XTYPE (num1) == Lisp_Float) ? XFLOAT (num1)->data : XINT (num1); f2 = (XTYPE (num2) == Lisp_Float) ? XFLOAT (num2)->data : XINT (num2); @@ -304,7 +305,7 @@ "Return the natural logarithm of NUM. If second optional argument BASE is given, return log NUM using that base.") (num, base) - register Lisp_Object num; + register Lisp_Object num, base; { double d = extract_float (num);