Skip to content

Commit

Permalink
quiet warning
Browse files Browse the repository at this point in the history
  • Loading branch information
phoddie committed Sep 8, 2020
1 parent 3e31ef2 commit 13b939d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/adpcm-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ int adpcm_decode_block (int16_t *outbuf, const uint8_t *inbuf, size_t inbufsize,
int32_t pcmdata[2];
int8_t index[2];

if (inbufsize < channels * 4)
if (inbufsize < (uint32_t)channels * 4)
return 0;

for (ch = 0; ch < channels; ch++) {
Expand Down

0 comments on commit 13b939d

Please sign in to comment.