Mercurial > emacs
diff src/search.c @ 106285:4248d7c5bed0
serach.c (simple_search): Remove warning by making *p const.
| author | Jan Dj?rv <jan.h.d@swipnet.se> |
|---|---|
| date | Fri, 27 Nov 2009 15:44:30 +0000 |
| parents | 234022ddfcd1 |
| children | 1d1d5d9bd884 |
line wrap: on
line diff
--- a/src/search.c Fri Nov 27 07:35:14 2009 +0000 +++ b/src/search.c Fri Nov 27 15:44:30 2009 +0000 @@ -1612,7 +1612,7 @@ EMACS_INT this_pos = pos; EMACS_INT this_pos_byte = pos_byte; int this_len = len; - unsigned char *p = pat + len_byte; + const unsigned char *p = pat + len_byte; if (this_pos - len < lim || (pos_byte - len_byte) < lim_byte) goto stop;
