diff options
| author | Richard M. Stallman | 1994-07-31 20:59:32 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-07-31 20:59:32 +0000 |
| commit | f1db542733310e20a3f445cd75b5a2f79835a292 (patch) | |
| tree | 0c2127f46610ec768b476ce50913f3d52273d596 /src | |
| parent | f845f2c9a5a0a939efa82adc28076c927401a817 (diff) | |
| download | emacs-f1db542733310e20a3f445cd75b5a2f79835a292.tar.gz emacs-f1db542733310e20a3f445cd75b5a2f79835a292.zip | |
(compile_range): Avoid warning in casts for range_start/end.
Diffstat (limited to 'src')
| -rw-r--r-- | src/regex.c | 4 |
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) | |||
| 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. */ |