if (INTEGERP (arg1) /* common lisp spec */
&& INTEGERP (arg2)) /* 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 */
+ EMACS_INT acc, x, y; /* some binary powers of x then accumulating */
Lisp_Object val;
x = XINT (arg1);
IN_FLOAT (value = logb (f), "logb", arg);
#else
#ifdef HAVE_FREXP
- IN_FLOAT (frexp (f, &value), "logb", arg);
- value--;
+ int ivalue;
+ IN_FLOAT (frexp (f, &ivalue), "logb", arg);
+ value = ivalue - 1;
#else
int i;
double d;
if (! NILP (divisor))
{
- int i1, i2;
+ EMACS_INT i1, i2;
CHECK_NUMBER_OR_FLOAT (divisor, 1);