mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Fix false positive constStatement warnings
This commit is contained in:
parent
cd1e13d4d2
commit
e6595c72aa
@ -71,7 +71,7 @@ u32 findDesiredStride(size_t num_lits, size_t min_len, size_t min_len_count) {
|
||||
} else if (num_lits < 5000) {
|
||||
// for larger but not huge sizes, go to stride 2 only if we have at
|
||||
// least minlen 3
|
||||
desiredStride = MIN(min_len - 1, 2);
|
||||
desiredStride = std::min(min_len - 1, 2UL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -321,7 +321,7 @@ void ComponentRepeat::wireRepeats(GlushkovBuildState &bs) {
|
||||
}
|
||||
|
||||
DEBUG_PRINTF("wiring up %u optional repeats\n", copies - m_min);
|
||||
for (u32 rep = MAX(m_min, 1); rep < copies; rep++) {
|
||||
for (u32 rep = std::max(m_min, 1U); rep < copies; rep++) {
|
||||
vector<PositionInfo> lasts = m_lasts[rep - 1];
|
||||
if (rep != m_min) {
|
||||
lasts.insert(lasts.end(), optLasts.begin(), optLasts.end());
|
||||
|
Loading…
x
Reference in New Issue
Block a user