fix mingw compile error by resolving std::min type mismatch (#346)

Co-authored-by: Weining Wu <wnwu@fortinet.com>
This commit is contained in:
wnwu
2025-10-10 14:49:45 -07:00
committed by GitHub
parent ca4a2dd754
commit 39a87e666d

View File

@@ -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 = std::min(min_len - 1, 2UL);
desiredStride = std::min(min_len - 1, static_cast<std::size_t>(2UL));
}
}