mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
smallwrite: remove unnecessary assertion
The alpha remap array is always big enough to remap characters. Silences Coverity issue CID 167663.
This commit is contained in:
parent
29ad557b9c
commit
4a417c42e5
@ -698,7 +698,6 @@ unique_ptr<raw_dfa> buildDfa(LitTrie &trie, bool nocase) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
auto v_state = state_ids.at(v);
|
auto v_state = state_ids.at(v);
|
||||||
assert((u16)trie[v].c < alpha.size());
|
|
||||||
u16 sym = alpha[trie[v].c];
|
u16 sym = alpha[trie[v].c];
|
||||||
DEBUG_PRINTF("edge to %u on 0x%02x (sym %u)\n", v_state,
|
DEBUG_PRINTF("edge to %u on 0x%02x (sym %u)\n", v_state,
|
||||||
trie[v].c, sym);
|
trie[v].c, sym);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user