aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-01 09:06:07 +0000
committerRichard M. Stallman1994-10-01 09:06:07 +0000
commit1a0201170f60c8fcadf66ed343333254ec89ccf2 (patch)
tree2f47508d04b01c903b3d141b26b4f4396df83ced /src
parentfc357930996255138785e5bf7f310a8820c53de1 (diff)
downloademacs-1a0201170f60c8fcadf66ed343333254ec89ccf2.tar.gz
emacs-1a0201170f60c8fcadf66ed343333254ec89ccf2.zip
(compile_range): When casting to const unsigned char *, put const first.
Diffstat (limited to 'src')
-rw-r--r--src/regex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regex.c b/src/regex.c
index d05493b15dd..f1d1319f6ff 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -2703,8 +2703,8 @@ compile_range (p_ptr, pend, translate, syntax, b)
2703 2703
2704 We also want to fetch the endpoints without translating them; the 2704 We also want to fetch the endpoints without translating them; the
2705 appropriate translation is done in the bit-setting loop below. */ 2705 appropriate translation is done in the bit-setting loop below. */
2706 range_start = ((unsigned const char *) p)[-2]; 2706 range_start = ((const unsigned char *) p)[-2];
2707 range_end = ((unsigned const char *) p)[0]; 2707 range_end = ((const unsigned char *) p)[0];
2708 2708
2709 /* Have to increment the pointer into the pattern string, so the 2709 /* Have to increment the pointer into the pattern string, so the
2710 caller isn't still at the ending character. */ 2710 caller isn't still at the ending character. */