mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-10 21:10:02 -04:00
refactor: ensure std::min works with the correct type
This commit is contained in:
parent
cad2f33a65
commit
7b3e718cda
@ -309,7 +309,7 @@ class flac_block_compressor final : public block_compressor::impl {
|
||||
size_t input_pos = 0;
|
||||
|
||||
while (num_samples > 0) {
|
||||
size_t n = std::min(num_samples, samples_per_call);
|
||||
auto n = std::min<size_t>(num_samples, samples_per_call);
|
||||
buffer.resize(n * num_channels);
|
||||
xfm.unpack(buffer,
|
||||
std::span<uint8_t const>(data.data() + input_pos,
|
||||
|
Loading…
x
Reference in New Issue
Block a user