summaryrefslogtreecommitdiff
path: root/src/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/regex.c b/src/regex.c
index f1d1319f6ff..4b22b31a3c3 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -2703,6 +2703,7 @@ 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. */
+ /* The SVR4 compiler on the 3B2 had trouble with unsigned const char *. */
range_start = ((const unsigned char *) p)[-2];
range_end = ((const unsigned char *) p)[0];