Mercurial > emacs
changeset 8402:f1a7929cee65
(compile_range): Avoid warning in casts for range_start/end.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 31 Jul 1994 20:59:32 +0000 |
parents | 1eee41c8120c |
children | 941432da0ff3 |
files | src/regex.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/regex.c Sun Jul 31 20:57:45 1994 +0000 +++ b/src/regex.c Sun Jul 31 20:59:32 1994 +0000 @@ -2706,8 +2706,8 @@ We also want to fetch the endpoints without translating them; the appropriate translation is done in the bit-setting loop below. */ - range_start = ((unsigned char *) p)[-2]; - range_end = ((unsigned char *) p)[0]; + range_start = ((unsigned const char *) p)[-2]; + range_end = ((unsigned const char *) p)[0]; /* Have to increment the pointer into the pattern string, so the caller isn't still at the ending character. */