summaryrefslogtreecommitdiff
path: root/src/data.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-10-06 22:39:18 +0000
committerKarl Heuer <kwzh@gnu.org>1994-10-06 22:39:18 +0000
commit955ea7402762125d781b70aec1e2272b68d7c638 (patch)
tree920326011b5da9dd207b9dc7d946719efe8c83e3 /src/data.c
parent6d971b108a15809b505c0c09ba9ce1ddaab77fe5 (diff)
downloademacs-955ea7402762125d781b70aec1e2272b68d7c638.tar.gz
(Flsh, Fadd1, Fsub1, Flognot): Don't use XFASTINT when negative.
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/data.c b/src/data.c
index b380755a7db..c8ac73e9519 100644
--- a/src/data.c
+++ b/src/data.c
@@ -1962,9 +1962,9 @@ In this case, zeros are shifted in on the left.")
CHECK_NUMBER (num2, 1);
if (XINT (num2) > 0)
- XSETINT (val, (unsigned) XFASTINT (num1) << XFASTINT (num2));
+ XSETINT (val, (EMACS_UINT) XUINT (num1) << XFASTINT (num2));
else
- XSETINT (val, (unsigned) XFASTINT (num1) >> -XINT (num2));
+ XSETINT (val, (EMACS_UINT) XUINT (num1) >> -XINT (num2));
return val;
}
@@ -1983,7 +1983,7 @@ Markers are converted to integers.")
CHECK_NUMBER_COERCE_MARKER (num, 0);
#endif /* LISP_FLOAT_TYPE */
- XSETINT (num, XFASTINT (num) + 1);
+ XSETINT (num, XINT (num) + 1);
return num;
}
@@ -2002,7 +2002,7 @@ Markers are converted to integers.")
CHECK_NUMBER_COERCE_MARKER (num, 0);
#endif /* LISP_FLOAT_TYPE */
- XSETINT (num, XFASTINT (num) - 1);
+ XSETINT (num, XINT (num) - 1);
return num;
}
@@ -2012,7 +2012,7 @@ DEFUN ("lognot", Flognot, Slognot, 1, 1, 0,
register Lisp_Object num;
{
CHECK_NUMBER (num, 0);
- XSETINT (num, ~XFASTINT (num));
+ XSETINT (num, ~XINT (num));
return num;
}