summaryrefslogtreecommitdiff
path: root/src/regex.c
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>2000-03-22 14:25:38 +0000
committerDave Love <fx@gnu.org>2000-03-22 14:25:38 +0000
commit89084293988e60922e51698a441ec71ab0d2363b (patch)
treeea117b7753298cac4f39c76ef591428dfef2cf99 /src/regex.c
parentee1c5b21883cdeff89dd2441c57017958862945e (diff)
downloademacs-89084293988e60922e51698a441ec71ab0d2363b.tar.gz
emacs-89084293988e60922e51698a441ec71ab0d2363b.tar.bz2
emacs-89084293988e60922e51698a441ec71ab0d2363b.zip
(re_compile_fastmap, re_match_2_internal): Fix cast to re_opcode_t.
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c4
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)
not = (re_opcode_t)p[-1] == notsyntaxspec;
k = *p++;
for (j = 0; j < (1 << BYTEWIDTH); j++)
- if ((SYNTAX (j) == (enum syntaxcode) k) ^ not)
+ if ((SYNTAX (j) == (re_opcode_t) k) ^ not)
fastmap[j] = 1;
break;
#else /* emacs */
@@ -5363,7 +5363,7 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop)
looks like multibyte form. */
c = *d, len = 1;
- if ((SYNTAX (c) != (enum syntaxcode) mcnt) ^ not)
+ if ((SYNTAX (c) != (re_opcode_t) mcnt) ^ not)
goto fail;
d += len;
}