# HG changeset patch # User Richard M. Stallman # Date 799604264 0 # Node ID c0e33cdebfab4dd51541c4f795dab1fdc87e6d15 # Parent 8406623b45c4314fa0fc36935b891430a70be6f2 (search_buffer): Cast p_limit to EMACS_INT not int. diff -r 8406623b45c4 -r c0e33cdebfab src/search.c --- a/src/search.c Thu May 04 16:17:23 1995 +0000 +++ b/src/search.c Thu May 04 16:17:44 1995 +0000 @@ -1176,7 +1176,7 @@ 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)