# HG changeset patch # User Richard Stallman # Date 775688372 0 # Node ID b860efa9524a5d524f0408fe8fad7535dd19b0a0 # Parent 620a471bbd253b4ce94722e9d1854a16c8672a86 (compile_range): Avoid warning in casts for range_start/end. diff -r 620a471bbd25 -r b860efa9524a regex.c --- a/regex.c Sat Jul 30 13:18:39 1994 +0000 +++ b/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. */