Commit 8b6a9551 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fexpt): Undo previous change.

parent 44edd521
2005-08-07 Richard M. Stallman <rms@gnu.org>
 
* floatfns.c (Fexpt): Undo previous change.
* dispnew.c (Fframe_or_buffer_changed_p): Take an arg
so it can be used with various state vectors.
 
......
......@@ -461,8 +461,7 @@ DEFUN ("expt", Fexpt, Sexpt, 2, 2, 0,
CHECK_NUMBER_OR_FLOAT (arg1);
CHECK_NUMBER_OR_FLOAT (arg2);
if (INTEGERP (arg1) /* common lisp spec */
&& INTEGERP (arg2) /* don't promote, if both are ints, and */
&& 0 <= XINT (arg2)) /* we are sure the result is not fractional */
&& INTEGERP (arg2)) /* don't promote, if both are ints */
{ /* this can be improved by pre-calculating */
EMACS_INT acc, x, y; /* some binary powers of x then accumulating */
Lisp_Object val;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment