Mercurial > emacs
comparison src/regex.c @ 9208:0c6e2b5d3850
(compile_range): When casting to const unsigned char *, put const first.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 01 Oct 1994 09:06:07 +0000 |
parents | 35bc87e0b41c |
children | 6ca1c82b40f4 |
comparison
equal
deleted
inserted
replaced
9207:83d8b85cd8c2 | 9208:0c6e2b5d3850 |
---|---|
2701 is set, the range endpoints will be negative if we fetch using a | 2701 is set, the range endpoints will be negative if we fetch using a |
2702 signed char *. | 2702 signed char *. |
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. */ |
2711 (*p_ptr)++; | 2711 (*p_ptr)++; |
2712 | 2712 |