Mercurial > emacs
changeset 4951:be690aaa7194
(skip_chars): Finish reenabling checks for buffer bounds.
Use XINT, not XFASTINT, when testing.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 10 Nov 1993 08:29:34 +0000 |
parents | 145c69e39666 |
children | 0c973730e476 |
files | src/search.c |
diffstat | 1 files changed, 5 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/src/search.c Wed Nov 10 07:59:21 1993 +0000 +++ b/src/search.c Wed Nov 10 08:29:34 1993 +0000 @@ -417,19 +417,13 @@ CHECK_NUMBER_COERCE_MARKER (lim, 1); /* In any case, don't allow scan outside bounds of buffer. */ - - /* I don't know what things this breaks, and there is no entry in the - ChangeLog, so I reinstated the end of buffer limit check. This code - breaks without it. (bfox) */ -/* #if 0 /* This breaks some things... jla. */ -#if 1 - if (XFASTINT (lim) > ZV) + /* jla turned this off, for no known reason. + bfox turned the ZV part on, and rms turned the + BEGV part back on. */ + if (XINT (lim) > ZV) XFASTINT (lim) = ZV; -#endif -#if 0 - if (XFASTINT (lim) < BEGV) + if (XINT (lim) < BEGV) XFASTINT (lim) = BEGV; -#endif p = XSTRING (string)->data; pend = p + XSTRING (string)->size;