From f6d0310f9c553f1e991c933512eb8d81a606344f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 4 Aug 2019 06:34:43 +0200 Subject: output/jack: use SIZE_MAX instead of (size_t)-1 --- src/output/plugins/JackOutputPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/output/plugins/JackOutputPlugin.cxx b/src/output/plugins/JackOutputPlugin.cxx index 6b82b8bf7..5b7a2fe2e 100644 --- a/src/output/plugins/JackOutputPlugin.cxx +++ b/src/output/plugins/JackOutputPlugin.cxx @@ -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); -- cgit v1.2.3