diff options
author | Karl Heuer <kwzh@gnu.org> | 1994-10-06 22:39:18 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1994-10-06 22:39:18 +0000 |
commit | 702672da3ce7e08fabd27a42586fe2fe08b35e26 (patch) | |
tree | 125a19579bf1e482a70f31a160eb72117fb06037 /src/data.c | |
parent | db37cb37320e2d9682ec88f00f1bfa01f7a96f46 (diff) | |
download | emacs-702672da3ce7e08fabd27a42586fe2fe08b35e26.tar.gz |
(Flsh, Fadd1, Fsub1, Flognot): Don't use XFASTINT when negative.
Diffstat (limited to 'src/data.c')
-rw-r--r-- | src/data.c | 10 |
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; } |