(Fabs): Don't use XFASTINT when negative.

This commit is contained in:
Karl Heuer 1994-10-06 22:38:08 +00:00
parent 865c050f41
commit db37cb3732

View file

@ -648,7 +648,7 @@ DEFUN ("abs", Fabs, Sabs, 1, 1, 0,
if (FLOATP (arg))
IN_FLOAT (arg = make_float (fabs (XFLOAT (arg)->data)), "abs", arg);
else if (XINT (arg) < 0)
XSETINT (arg, - XFASTINT (arg));
XSETINT (arg, - XINT (arg));
return arg;
}