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) |
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 cb78545b9f..1d39efca16 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, if ( (s1->accepting && !s2->accepting) || (!s1->accepting && s2->accepting) ) { - idx = s1->marked * state_cnt + s2->marked; + idx = (unsigned long long) s1->marked * state_cnt + s2->marked; table[idx / 32] |= (1 << (idx % 32)); } @@ -2023,7 +2023,7 @@ dfa_merge_nondistinguishable_states (struct REGEX_INTERNAL_Context *ctx, { for (s2 = a->states_head; NULL != s2 && s1 != s2; s2 = s2->next) { - idx = s1->marked * state_cnt + s2->marked; + idx = (unsigned long long) s1->marked * state_cnt + s2->marked; if (0 != (table[idx / 32] & (1 << (idx % 32)))) continue; num_equal_edges = 0; |