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 3ef043392c
commit f6d0310f9c

View File

@ -602,7 +602,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);