From 1d506023c7b62d91572df862f7b116dc15661842 Mon Sep 17 00:00:00 2001 From: Bernhard Schelling <14200249+schellingb@users.noreply.github.com> Date: Thu, 14 Sep 2023 01:47:43 +0900 Subject: [PATCH] Suppress conversion warnings (#52) (#72) --- tsf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsf.h b/tsf.h index 2f3a793..57235cd 100644 --- a/tsf.h +++ b/tsf.h @@ -984,7 +984,7 @@ static int tsf_load_samples(void** pRawBuffer, float** pFloatBuffer, unsigned in #else // Inline convert the samples from short to float float *res, *out; const short *in; - *pSmplCount = chunkSmpl->size / sizeof(short); + *pSmplCount = chunkSmpl->size / (unsigned int)sizeof(short); *pFloatBuffer = (float*)TSF_MALLOC(*pSmplCount * sizeof(float)); if (!*pFloatBuffer || !stream->read(stream->data, *pFloatBuffer, chunkSmpl->size)) return 0; for (res = *pFloatBuffer, out = res + *pSmplCount, in = (short*)res + *pSmplCount; out != res;)