changeset 28268:33f65d22f2a8

(re_compile_fastmap, re_match_2_internal): Fix cast to re_opcode_t.
author Dave Love <fx@gnu.org>
date Wed, 22 Mar 2000 14:25:38 +0000
parents 0a30b471e996
children fd13be8ae190
files src/regex.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/regex.c	Wed Mar 22 12:17:51 2000 +0000
+++ b/src/regex.c	Wed Mar 22 14:25:38 2000 +0000
@@ -3462,7 +3462,7 @@
 	  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 @@
 		 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;
 	  }