This commit is contained in:
Luca Deri
2021-08-03 09:44:50 +02:00
parent 6b7e5fa8d2
commit dc841574af
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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)