diff options
| author | Richard M. Stallman | 2000-01-18 20:11:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2000-01-18 20:11:41 +0000 |
| commit | c3975772b826c52e5b284b288d1e1c78065c964e (patch) | |
| tree | b8afc21ad148e239fb0214b3b2b9ff12ba42b035 /src | |
| parent | 72dbbc7d75068349e9d668d691e98faea2bcf590 (diff) | |
| download | emacs-c3975772b826c52e5b284b288d1e1c78065c964e.tar.gz emacs-c3975772b826c52e5b284b288d1e1c78065c964e.zip | |
(re_compile_fastmap): While checking a range table for
`charset', skip flag bits for a character class correctly.
Diffstat (limited to 'src')
| -rw-r--r-- | src/regex.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/regex.c b/src/regex.c index c9219c66c83..09f56a1dffc 100644 --- a/src/regex.c +++ b/src/regex.c | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | 0.12. (Implements POSIX draft P10003.2/D11.2, except for | 2 | 0.12. (Implements POSIX draft P10003.2/D11.2, except for |
| 3 | internationalization features.) | 3 | internationalization features.) |
| 4 | 4 | ||
| 5 | Copyright (C) 1993, 1994-1998, 1999 Free Software Foundation, Inc. | 5 | Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. |
| 6 | 6 | ||
| 7 | This program is free software; you can redistribute it and/or modify | 7 | This program is free software; you can redistribute it and/or modify |
| 8 | it under the terms of the GNU General Public License as published by | 8 | it under the terms of the GNU General Public License as published by |
| @@ -3534,8 +3534,9 @@ re_compile_fastmap (bufp) | |||
| 3534 | multibyte character in the range table. */ | 3534 | multibyte character in the range table. */ |
| 3535 | int c, count; | 3535 | int c, count; |
| 3536 | 3536 | ||
| 3537 | /* Make P points the range table. */ | 3537 | /* Make P points the range table. `+ 2' is to skip flag |
| 3538 | p += CHARSET_BITMAP_SIZE (&p[-2]); | 3538 | bits for a character class. */ |
| 3539 | p += CHARSET_BITMAP_SIZE (&p[-2]) + 2; | ||
| 3539 | 3540 | ||
| 3540 | /* Extract the number of ranges in range table into COUNT. */ | 3541 | /* Extract the number of ranges in range table into COUNT. */ |
| 3541 | EXTRACT_NUMBER_AND_INCR (count, p); | 3542 | EXTRACT_NUMBER_AND_INCR (count, p); |