(compile_range): When casting to const unsigned char *, put const first.
authorRichard Stallman <rms@gnu.org>
Sat, 1 Oct 1994 09:06:07 +0000 (09:06 +0000)
committerRichard Stallman <rms@gnu.org>
Sat, 1 Oct 1994 09:06:07 +0000 (09:06 +0000)
regex.c

diff --git a/regex.c b/regex.c
index d05493b15dd018f63135d352e6df58727eab8d66..f1d1319f6ff8891e2bb4918de79ce4a093660e50 100644 (file)
--- a/regex.c
+++ b/regex.c
@@ -2703,8 +2703,8 @@ compile_range (p_ptr, pend, translate, syntax, b)
 
      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.  */