shithub: sox

Download patch

ref: c430d8fcbea071d56735527a35a980132b9b66c2
parent: c3f82ed011d03816d64dd09a37f3e565c90e5784
author: Mans Rullgard <mans@mansr.com>
date: Thu Aug 13 17:18:51 EDT 2020

wav: fix printf format warning

The gsmbytecount variable has type size_t.  Use the correct printf
modifier.

--- a/src/wav.c
+++ b/src/wav.c
@@ -1475,7 +1475,7 @@
             lsx_debug("GSM6.10 format: %"PRIu64" blocks %"PRIu64" padded samples %"PRIu64" padded data bytes",
                     blocksWritten, dwSamplesWritten, dwDataLength);
             if (wav->gsmbytecount != dwDataLength)
-                lsx_warn("help ! internal inconsistency - data_written %"PRIu64" gsmbytecount %"PRIu64,
+                lsx_warn("help ! internal inconsistency - data_written %"PRIu64" gsmbytecount %zu",
                          dwDataLength, wav->gsmbytecount);
 
         }