diff options
| author | Dave Love | 2000-03-22 14:25:38 +0000 |
|---|---|---|
| committer | Dave Love | 2000-03-22 14:25:38 +0000 |
| commit | 89084293988e60922e51698a441ec71ab0d2363b (patch) | |
| tree | ea117b7753298cac4f39c76ef591428dfef2cf99 /src | |
| parent | ee1c5b21883cdeff89dd2441c57017958862945e (diff) | |
| download | emacs-89084293988e60922e51698a441ec71ab0d2363b.tar.gz emacs-89084293988e60922e51698a441ec71ab0d2363b.zip | |
(re_compile_fastmap, re_match_2_internal): Fix cast to re_opcode_t.
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 f97af4c9c61..d1d18c36bd3 100644 --- a/src/regex.c +++ b/src/regex.c | |||
| @@ -3462,7 +3462,7 @@ re_compile_fastmap (bufp) | |||
| 3462 | not = (re_opcode_t)p[-1] == notsyntaxspec; | 3462 | not = (re_opcode_t)p[-1] == notsyntaxspec; |
| 3463 | k = *p++; | 3463 | k = *p++; |
| 3464 | for (j = 0; j < (1 << BYTEWIDTH); j++) | 3464 | for (j = 0; j < (1 << BYTEWIDTH); j++) |
| 3465 | if ((SYNTAX (j) == (enum syntaxcode) k) ^ not) | 3465 | if ((SYNTAX (j) == (re_opcode_t) k) ^ not) |
| 3466 | fastmap[j] = 1; | 3466 | fastmap[j] = 1; |
| 3467 | break; | 3467 | break; |
| 3468 | #else /* emacs */ | 3468 | #else /* emacs */ |
| @@ -5363,7 +5363,7 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop) | |||
| 5363 | looks like multibyte form. */ | 5363 | looks like multibyte form. */ |
| 5364 | c = *d, len = 1; | 5364 | c = *d, len = 1; |
| 5365 | 5365 | ||
| 5366 | if ((SYNTAX (c) != (enum syntaxcode) mcnt) ^ not) | 5366 | if ((SYNTAX (c) != (re_opcode_t) mcnt) ^ not) |
| 5367 | goto fail; | 5367 | goto fail; |
| 5368 | d += len; | 5368 | d += len; |
| 5369 | } | 5369 | } |