aboutsummaryrefslogtreecommitdiffstats
path: root/src/ccl.c
diff options
context:
space:
mode:
authorPaul Eggert2019-06-27 12:31:27 -0700
committerPaul Eggert2019-06-27 12:35:09 -0700
commitf59a3f3d61c7da8a22ddb13185ae2271865ae155 (patch)
treeefc3b8dcdbafd11ddcd4532d701414f90e7de236 /src/ccl.c
parent4893a09c005cac81c05cd3db05c87225be6a7b42 (diff)
downloademacs-f59a3f3d61c7da8a22ddb13185ae2271865ae155.tar.gz
emacs-f59a3f3d61c7da8a22ddb13185ae2271865ae155.zip
Improve XFIXNUM cleanup a bit
Based on Pip Cet’s review (Bug#36370#13). * src/ccl.c (Fccl_execute_on_string): Use clearer indexing. * src/dosfns.c (Fint86, Fdos_memput): Avoid runtime checks for negative fixnums when debugging. This restores the earlier machine code. * src/lisp.h (XFIXNUM, XUFIXNUM): Use eassert, not eassume. (XFIXNAT): At the start, merely eassert FIXNUMP rather than eassuming FIXNATP. At the end, eassume that the result is nonnegative. This restores help to the compiler that the previous patch mistakenly removed.
Diffstat (limited to 'src/ccl.c')
-rw-r--r--src/ccl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ccl.c b/src/ccl.c
index f1d4c28df1c..ff42c6f25fc 100644
--- a/src/ccl.c
+++ b/src/ccl.c
@@ -2062,9 +2062,9 @@ usage: (ccl-execute-on-string CCL-PROGRAM STATUS STRING &optional CONTINUE UNIBY
2062 if (TYPE_RANGED_FIXNUMP (int, AREF (status, i))) 2062 if (TYPE_RANGED_FIXNUMP (int, AREF (status, i)))
2063 ccl.reg[i] = XFIXNUM (AREF (status, i)); 2063 ccl.reg[i] = XFIXNUM (AREF (status, i));
2064 } 2064 }
2065 if (FIXNUMP (AREF (status, i))) 2065 if (FIXNUMP (AREF (status, 8)))
2066 { 2066 {
2067 EMACS_INT ic = XFIXNUM (AREF (status, i)); 2067 EMACS_INT ic = XFIXNUM (AREF (status, 8));
2068 if (ccl.ic < ic && ic < ccl.size) 2068 if (ccl.ic < ic && ic < ccl.size)
2069 ccl.ic = ic; 2069 ccl.ic = ic;
2070 } 2070 }