Skip to content

Commit

Permalink
Suppress conversion warnings (#52) (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
schellingb committed Sep 13, 2023
1 parent 1961b13 commit 1d50602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;)
Expand Down

0 comments on commit 1d50602

Please sign in to comment.