Mercurial > hg > xemacs-beta
diff src/regex.c @ 1414:56496b493888
[xemacs-hg @ 2003-04-15 16:09:46 by stephent]
re_match charset bug fix <87of37bv7n.fsf_-_@tleepslib.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Tue, 15 Apr 2003 16:09:47 +0000 |
parents | 19738a2a5138 |
children | 74cb069b8417 |
line wrap: on
line diff
--- a/src/regex.c Tue Apr 15 15:56:58 2003 +0000 +++ b/src/regex.c Tue Apr 15 16:09:47 2003 +0000 @@ -5341,7 +5341,7 @@ case charset: case charset_not: { - REGISTER unsigned char c; + REGISTER Ichar c; re_bool not_p = (re_opcode_t) *(p - 1) == charset_not; DEBUG_PRINT2 ("EXECUTING charset%s.\n", not_p ? "_not" : ""); @@ -5352,7 +5352,7 @@ /* Cast to `unsigned int' instead of `unsigned char' in case the bit list is a full 32 bytes long. */ - if (c < (unsigned int) (*p * BYTEWIDTH) + if ((unsigned int)c < (unsigned int) (*p * BYTEWIDTH) && p[1 + c / BYTEWIDTH] & (1 << (c % BYTEWIDTH))) not_p = !not_p;