Win fix
This commit is contained in:
+1
-1
@@ -126,7 +126,7 @@ typedef struct
|
||||
AC_MATCH_t match;
|
||||
AC_ALPHABET_t * astring; /* String of alphabets */
|
||||
unsigned short int length, /* Length of string */
|
||||
option; /* AC_FEATURE_LC | AC_FEATURE_DEBUG */;
|
||||
option; /* AC_FEATURE_LC | AC_FEATURE_DEBUG */
|
||||
} AC_TEXT_t;
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -385,7 +385,7 @@ int ac_automata_exact_match(AC_PATTERNS_t *mp,int pos, AC_TEXT_t *txt) {
|
||||
AC_PATTERN_t **matched = txt->match.matched;
|
||||
int i;
|
||||
int match_map = 0;
|
||||
for(i=0; i < mp->num && i < (__SIZEOF_INT__*8-1); i++,patterns++) {
|
||||
for(i=0; i < mp->num && i < ((sizeof(int)*8)-1); i++,patterns++) {
|
||||
do {
|
||||
if(patterns->rep.from_start && patterns->rep.at_end) {
|
||||
if(pos == txt->length && patterns->length == pos)
|
||||
|
||||
Reference in New Issue
Block a user