diff options
author | Luca Deri <deri@ntop.org> | 2021-08-03 09:44:50 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-08-03 09:44:50 +0200 |
commit | dc841574af54d59ca8cfd0aa30fcc471c598dbbb (patch) | |
tree | 7510ea5e82710ea273ba223d3fef71b4cc693c23 /src/lib/third_party | |
parent | 6b7e5fa8d251f11c1bae16ea892a43a92b098480 (diff) |
Win fix
Diffstat (limited to 'src/lib/third_party')
-rw-r--r-- | src/lib/third_party/include/ahocorasick.h | 2 | ||||
-rw-r--r-- | src/lib/third_party/src/ahocorasick.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/third_party/include/ahocorasick.h b/src/lib/third_party/include/ahocorasick.h index f69e5088a..ad402c056 100644 --- a/src/lib/third_party/include/ahocorasick.h +++ b/src/lib/third_party/include/ahocorasick.h @@ -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; diff --git a/src/lib/third_party/src/ahocorasick.c b/src/lib/third_party/src/ahocorasick.c index 06ed56a27..f29f558dc 100644 --- a/src/lib/third_party/src/ahocorasick.c +++ b/src/lib/third_party/src/ahocorasick.c @@ -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) |