summaryrefslogtreecommitdiff
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-08-04 06:34:43 +0200
committerMax Kellermann <max@musicpd.org>2019-08-06 11:33:52 +0200
commitf6d0310f9c553f1e991c933512eb8d81a606344f (patch)
treef6a702a5ee5a16a9da9d2818b7b1216ac339f62e /src/output
parent3ef043392c849f3042acc630942a35fa722a3943 (diff)
output/jack: use SIZE_MAX instead of (size_t)-1
Diffstat (limited to 'src/output')
-rw-r--r--src/output/plugins/JackOutputPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
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);