Mercurial > hg > octave-kai > gnulib-hg
changeset 312:7f925f65165f
(compile_range): When casting to const unsigned char *, put const first.
author | Richard Stallman <rms@gnu.org> |
---|---|
date | Sat, 01 Oct 1994 09:06:07 +0000 |
parents | 6980a90dddc9 |
children | 9cf2ec9abdb7 |
files | regex.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/regex.c +++ b/regex.c @@ -2703,8 +2703,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 const char *) p)[-2]; - range_end = ((unsigned const char *) p)[0]; + range_start = ((const unsigned char *) p)[-2]; + range_end = ((const unsigned char *) p)[0]; /* Have to increment the pointer into the pattern string, so the caller isn't still at the ending character. */