output/jack: use SIZE_MAX instead of (size_t)-1

This commit is contained in:
Max Kellermann 2019-08-04 06:34:43 +02:00
parent cde6c46d2f
commit 90067d16c0
1 changed files with 1 additions and 1 deletions

View File

@ -609,7 +609,7 @@ JackOutput::WriteSamples(const float *src, size_t n_frames)
const unsigned n_channels = audio_format.channels;
float *dest[MAX_CHANNELS];
size_t space = -1;
size_t space = SIZE_MAX;
for (unsigned i = 0; i < n_channels; ++i) {
jack_ringbuffer_data_t d[2];
jack_ringbuffer_get_write_vector(ringbuffer[i], d);