# HG changeset patch # User Richard M. Stallman # Date 948226301 0 # Node ID 3fcd19033f0c629b8e6aecf29fe32405c766c478 # Parent 0bb119a7ff93b0bb2ab8c7e36073caed0aeca9f3 (re_compile_fastmap): While checking a range table for `charset', skip flag bits for a character class correctly. diff -r 0bb119a7ff93 -r 3fcd19033f0c src/regex.c --- a/src/regex.c Tue Jan 18 12:02:31 2000 +0000 +++ b/src/regex.c Tue Jan 18 20:11:41 2000 +0000 @@ -2,7 +2,7 @@ 0.12. (Implements POSIX draft P10003.2/D11.2, except for internationalization features.) - Copyright (C) 1993, 1994-1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -3534,8 +3534,9 @@ multibyte character in the range table. */ int c, count; - /* Make P points the range table. */ - p += CHARSET_BITMAP_SIZE (&p[-2]); + /* Make P points the range table. `+ 2' is to skip flag + bits for a character class. */ + p += CHARSET_BITMAP_SIZE (&p[-2]) + 2; /* Extract the number of ranges in range table into COUNT. */ EXTRACT_NUMBER_AND_INCR (count, p);