# HG changeset patch # User Richard M. Stallman # Date 781002367 0 # Node ID 0c6e2b5d3850e28cc7da315733161fdf0f2fb62a # Parent 83d8b85cd8c2328e6db26c542d7a2235fb1fc1b0 (compile_range): When casting to const unsigned char *, put const first. diff -r 83d8b85cd8c2 -r 0c6e2b5d3850 src/regex.c --- a/src/regex.c Sat Oct 01 07:35:26 1994 +0000 +++ b/src/regex.c Sat Oct 01 09:06:07 1994 +0000 @@ -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. */