aboutsummaryrefslogtreecommitdiff
path: root/src/regex
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex')
-rw-r--r--src/regex/regex_internal.c4
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;