1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 08:31:35 -08:00

(search_buffer): Cast p_limit to EMACS_INT not int.

This commit is contained in:
Richard M. Stallman 1995-05-04 16:17:44 +00:00
parent 2132af723a
commit 9fa17f9304

View file

@ -1176,7 +1176,7 @@ search_buffer (string, pos, lim, n, RE, trt, inverse_trt, posix)
as we don't step by infinity. So pick the kind
that works when we do step by infinity. */
if ((EMACS_INT) (p_limit + infinity) > (EMACS_INT) p_limit)
while ((EMACS_INT) cursor <= (int) p_limit)
while ((EMACS_INT) cursor <= (EMACS_INT) p_limit)
cursor += BM_tab[*cursor];
else
while ((unsigned EMACS_INT) cursor <= (unsigned EMACS_INT) p_limit)