summaryrefslogtreecommitdiff
path: root/src/regex/regex_internal.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-06 11:14:11 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-06 11:14:11 +0000
commitf5beb3eaf163fc0bf2a4f86bd413d3ee6939cfea (patch)
treeb59a38ad9e2296b3d2c8cc3302f21cf6d3ecc458 /src/regex/regex_internal.c
parent6db64c5eae089e1d81cafbb051f65412790d16bc (diff)
downloadgnunet-f5beb3eaf163fc0bf2a4f86bd413d3ee6939cfea.tar.gz
gnunet-f5beb3eaf163fc0bf2a4f86bd413d3ee6939cfea.zip
-fix misc issues
Diffstat (limited to 'src/regex/regex_internal.c')
-rw-r--r--src/regex/regex_internal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regex/regex_internal.c b/src/regex/regex_internal.c
index 616b7f141..cb78545b9 100644
--- a/src/regex/regex_internal.c
+++ b/src/regex/regex_internal.c
@@ -2037,9 +2037,9 @@ dfa_merge_nondistinguishable_states (struct REGEX_INTERNAL_Context *ctx,
2037 /* same edge, but targets definitively different, so we're different 2037 /* same edge, but targets definitively different, so we're different
2038 as well */ 2038 as well */
2039 if (t1->to_state->marked > t2->to_state->marked) 2039 if (t1->to_state->marked > t2->to_state->marked)
2040 idx1 = t1->to_state->marked * state_cnt + t2->to_state->marked; 2040 idx1 = (unsigned long long) t1->to_state->marked * state_cnt + t2->to_state->marked;
2041 else 2041 else
2042 idx1 = t2->to_state->marked * state_cnt + t1->to_state->marked; 2042 idx1 = (unsigned long long) t2->to_state->marked * state_cnt + t1->to_state->marked;
2043 if (0 != (table[idx1 / 32] & (1 << (idx1 % 32)))) 2043 if (0 != (table[idx1 / 32] & (1 << (idx1 % 32))))
2044 { 2044 {
2045 table[idx / 32] |= (1 << (idx % 32)); 2045 table[idx / 32] |= (1 << (idx % 32));
@@ -2066,7 +2066,7 @@ dfa_merge_nondistinguishable_states (struct REGEX_INTERNAL_Context *ctx,
2066 for (s2 = a->states_head; NULL != s2 && s1 != s2; s2 = s2_next) 2066 for (s2 = a->states_head; NULL != s2 && s1 != s2; s2 = s2_next)
2067 { 2067 {
2068 s2_next = s2->next; 2068 s2_next = s2->next;
2069 idx = s1->marked * state_cnt + s2->marked; 2069 idx = (unsigned long long) s1->marked * state_cnt + s2->marked;
2070 if (0 == (table[idx / 32] & (1 << (idx % 32)))) 2070 if (0 == (table[idx / 32] & (1 << (idx % 32))))
2071 automaton_merge_states (ctx, a, s1, s2); 2071 automaton_merge_states (ctx, a, s1, s2);
2072 } 2072 }