Commit f1db5427 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(compile_range): Avoid warning in casts for range_start/end.

parent f845f2c9
......@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment