aboutsummaryrefslogtreecommitdiffstats
path: root/src/floatfns.c
diff options
context:
space:
mode:
authorKarl Heuer1995-07-17 22:18:04 +0000
committerKarl Heuer1995-07-17 22:18:04 +0000
commit9a51b24a036009390f5ced5ae8932d4a89e63690 (patch)
tree01d16047215c2e8420e51ec8b4fc45b04ebb92b9 /src/floatfns.c
parented3e7c62a6f0f1fb510bd19933dfe43b67915a7d (diff)
downloademacs-9a51b24a036009390f5ced5ae8932d4a89e63690.tar.gz
emacs-9a51b24a036009390f5ced5ae8932d4a89e63690.zip
(Fexpt): Use EMACS_INT for integer calculation.
(Ffloor): Likewise.
Diffstat (limited to 'src/floatfns.c')
-rw-r--r--src/floatfns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/floatfns.c b/src/floatfns.c
index 33186eaf377..459f4d63faa 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -447,7 +447,7 @@ DEFUN ("expt", Fexpt, Sexpt, 2, 2, 0,
447 if (INTEGERP (arg1) /* common lisp spec */ 447 if (INTEGERP (arg1) /* common lisp spec */
448 && INTEGERP (arg2)) /* don't promote, if both are ints */ 448 && INTEGERP (arg2)) /* don't promote, if both are ints */
449 { /* this can be improved by pre-calculating */ 449 { /* this can be improved by pre-calculating */
450 int acc, x, y; /* some binary powers of x then accumulating */ 450 EMACS_INT acc, x, y; /* some binary powers of x then accumulating */
451 Lisp_Object val; 451 Lisp_Object val;
452 452
453 x = XINT (arg1); 453 x = XINT (arg1);
@@ -747,7 +747,7 @@ With optional DIVISOR, return the largest integer no greater than ARG/DIVISOR.")
747 747
748 if (! NILP (divisor)) 748 if (! NILP (divisor))
749 { 749 {
750 int i1, i2; 750 EMACS_INT i1, i2;
751 751
752 CHECK_NUMBER_OR_FLOAT (divisor, 1); 752 CHECK_NUMBER_OR_FLOAT (divisor, 1);
753 753