diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-06 15:24:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-06 15:24:26 +0000 |
commit | 3d7bae58c4b9b128e6000a2fe1fe65595235bb14 (patch) | |
tree | d50cfa569c5d447da5663333e61964c47ac09f73 /src/regex | |
parent | 6cef8fea0c3b6756870786ebc4db0588373c8f65 (diff) | |
download | gnunet-3d7bae58c4b9b128e6000a2fe1fe65595235bb14.tar.gz gnunet-3d7bae58c4b9b128e6000a2fe1fe65595235bb14.zip |
misc fixes
Diffstat (limited to 'src/regex')
-rw-r--r-- | src/regex/regex_internal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regex/regex_internal.c b/src/regex/regex_internal.c index cb78545b9..1d39efca1 100644 --- a/src/regex/regex_internal.c +++ b/src/regex/regex_internal.c | |||
@@ -2010,7 +2010,7 @@ dfa_merge_nondistinguishable_states (struct REGEX_INTERNAL_Context *ctx, | |||
2010 | if ( (s1->accepting && !s2->accepting) || | 2010 | if ( (s1->accepting && !s2->accepting) || |
2011 | (!s1->accepting && s2->accepting) ) | 2011 | (!s1->accepting && s2->accepting) ) |
2012 | { | 2012 | { |
2013 | idx = s1->marked * state_cnt + s2->marked; | 2013 | idx = (unsigned long long) s1->marked * state_cnt + s2->marked; |
2014 | table[idx / 32] |= (1 << (idx % 32)); | 2014 | table[idx / 32] |= (1 << (idx % 32)); |
2015 | } | 2015 | } |
2016 | 2016 | ||
@@ -2023,7 +2023,7 @@ dfa_merge_nondistinguishable_states (struct REGEX_INTERNAL_Context *ctx, | |||
2023 | { | 2023 | { |
2024 | for (s2 = a->states_head; NULL != s2 && s1 != s2; s2 = s2->next) | 2024 | for (s2 = a->states_head; NULL != s2 && s1 != s2; s2 = s2->next) |
2025 | { | 2025 | { |
2026 | idx = s1->marked * state_cnt + s2->marked; | 2026 | idx = (unsigned long long) s1->marked * state_cnt + s2->marked; |
2027 | if (0 != (table[idx / 32] & (1 << (idx % 32)))) | 2027 | if (0 != (table[idx / 32] & (1 << (idx % 32)))) |
2028 | continue; | 2028 | continue; |
2029 | num_equal_edges = 0; | 2029 | num_equal_edges = 0; |