aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-05-04 16:17:44 +0000
committerRichard M. Stallman1995-05-04 16:17:44 +0000
commit9fa17f930462502c6914e47386446c9055abb0da (patch)
tree8bbff8d5f54ef79b76d82153718ea8a7b6a441c0
parent2132af723abd5b9f516dcd28d761014a2a480a7e (diff)
downloademacs-9fa17f930462502c6914e47386446c9055abb0da.tar.gz
emacs-9fa17f930462502c6914e47386446c9055abb0da.zip
(search_buffer): Cast p_limit to EMACS_INT not int.
-rw-r--r--src/search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c
index 82d9d812bc9..939c3f7cde0 100644
--- a/src/search.c
+++ b/src/search.c
@@ -1176,7 +1176,7 @@ search_buffer (string, pos, lim, n, RE, trt, inverse_trt, posix)
1176 as we don't step by infinity. So pick the kind 1176 as we don't step by infinity. So pick the kind
1177 that works when we do step by infinity. */ 1177 that works when we do step by infinity. */
1178 if ((EMACS_INT) (p_limit + infinity) > (EMACS_INT) p_limit) 1178 if ((EMACS_INT) (p_limit + infinity) > (EMACS_INT) p_limit)
1179 while ((EMACS_INT) cursor <= (int) p_limit) 1179 while ((EMACS_INT) cursor <= (EMACS_INT) p_limit)
1180 cursor += BM_tab[*cursor]; 1180 cursor += BM_tab[*cursor];
1181 else 1181 else
1182 while ((unsigned EMACS_INT) cursor <= (unsigned EMACS_INT) p_limit) 1182 while ((unsigned EMACS_INT) cursor <= (unsigned EMACS_INT) p_limit)