commit 362db82ca8f9caadfd56ee739451acb3fd0d0e0d parent 9900659b323b51cf9aa53257147967a303e429a4 Author: Louis Burda <quent.burda@gmail.com> Date: Sun, 10 Mar 2024 14:33:35 +0100 Fix unsigned MAX(0, ..) Diffstat:
M | mplay.flac.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mplay.flac.c b/mplay.flac.c @@ -400,7 +400,8 @@ user_pos(void) { size_t sample_pos; - sample_pos = MAX(0, decoder.sample_next - stream_samples_buffered()); + sample_pos = (size_t) MAX(0, + (ssize_t) decoder.sample_next - (ssize_t) stream_samples_buffered()); return (double) sample_pos * 1.F / (double) decoder.rate; }