comparison src/regex.c @ 8402:f1a7929cee65

(compile_range): Avoid warning in casts for range_start/end.
author Richard M. Stallman <rms@gnu.org>
date Sun, 31 Jul 1994 20:59:32 +0000
parents 694c4686b446
children dc5353720725
comparison
equal deleted inserted replaced
8401:1eee41c8120c 8402:f1a7929cee65
2704 is set, the range endpoints will be negative if we fetch using a 2704 is set, the range endpoints will be negative if we fetch using a
2705 signed char *. 2705 signed char *.
2706 2706
2707 We also want to fetch the endpoints without translating them; the 2707 We also want to fetch the endpoints without translating them; the
2708 appropriate translation is done in the bit-setting loop below. */ 2708 appropriate translation is done in the bit-setting loop below. */
2709 range_start = ((unsigned char *) p)[-2]; 2709 range_start = ((unsigned const char *) p)[-2];
2710 range_end = ((unsigned char *) p)[0]; 2710 range_end = ((unsigned const char *) p)[0];
2711 2711
2712 /* Have to increment the pointer into the pattern string, so the 2712 /* Have to increment the pointer into the pattern string, so the
2713 caller isn't still at the ending character. */ 2713 caller isn't still at the ending character. */
2714 (*p_ptr)++; 2714 (*p_ptr)++;
2715 2715