summaryrefslogtreecommitdiff
path: root/src/regex.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-07-31 20:59:32 +0000
committerRichard M. Stallman <rms@gnu.org>1994-07-31 20:59:32 +0000
commit2341b534713ddb1a6ad57d253c5d82ae1f846e95 (patch)
tree794ff2b61155563bba0e534007be358836f7458c /src/regex.c
parent8d8811cc0b90baa1ade7f5dfce990aa1051a8e8d (diff)
downloademacs-2341b534713ddb1a6ad57d253c5d82ae1f846e95.tar.gz
(compile_range): Avoid warning in casts for range_start/end.
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regex.c b/src/regex.c
index 88ccc69a208..82ab3d0873c 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -2706,8 +2706,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 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. */