From: Steve Robbins Date: Sat, 22 Oct 2022 21:34:09 -0500 Subject: Fix printf specifier for long int to avoid following warning. MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit /home/steve/Packages/nyquist/build-area/nyquist-3.20+ds/cmupv/src/cmupv.c: In function ‘pv_get_output2’: /home/steve/Packages/nyquist/build-area/nyquist-3.20+ds/cmupv/src/cmupv.c:1093:62: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘int64_t’ {aka ‘long int’} [-Wformat=] 1093 | D printf("pv_get_output2 returning at offset %ld abs %I64d\n", | ~~~~^ | | | int | %I64ld 1094 | (long) (pv->out_next - pv->output_buffer), pv->output_total); | ~~~~~~~~~~~~~~~~ | | | int64_t {aka long int} --- cmupv/src/cmupv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmupv/src/cmupv.c b/cmupv/src/cmupv.c index 304e57a..be93264 100644 --- a/cmupv/src/cmupv.c +++ b/cmupv/src/cmupv.c @@ -1090,7 +1090,7 @@ float *pv_get_output2(Phase_vocoder x) (long) (out_next - output_buffer), (long) (pv->output_total - (out_next - output_buffer))); } - D printf("pv_get_output2 returning at offset %ld abs %I64d\n", + D printf("pv_get_output2 returning at offset %ld abs %I64ld\n", (long) (pv->out_next - pv->output_buffer), pv->output_total); /*DBG out_next position is output_total, so if we subtract out_next - output_buffer, we get the absolute position of the output_buffer