From 46865b290e5a207bf3b5f6f501e4702e4b5b2ba6 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 11 Aug 2024 11:23:32 +0200 Subject: [PATCH] Make types compatible, change from int to size_t --- src/frontend/sndprint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/sndprint.c b/src/frontend/sndprint.c index 127e1d3d3..a7b42bb45 100644 --- a/src/frontend/sndprint.c +++ b/src/frontend/sndprint.c @@ -91,7 +91,7 @@ static void* my_open_sf(char* fn, int nchannel) { return ((void*)d); } -static int my_write_sf(void* d, float val) { +static size_t my_write_sf(void* d, float val) { SSFILE* p = (SSFILE*)d; p->sf_buf[p->sf_bptr++] = val; if (p->sf_bptr >= p->sf_channels) { @@ -120,7 +120,7 @@ typedef struct SP_BUF { static void (*p_close)(void*); static void* (*p_open)(char*, int); -static int (*p_write)(void*, float); +static size_t (*p_write)(void*, float); static void* outfile; static uint32_t sample; static int sp_nchannel;