Skip to content

Commit

Permalink
Fix wrong implicit cast
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoire committed Jan 19, 2014
1 parent 2b28890 commit d2ff094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/audio_mixer/integer.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ static void FilterS32N (audio_volume_t *vol, block_t *block, float volume)
for (size_t n = block->i_buffer / sizeof (*p); n > 0; n--)
{
int64_t s = *p * (int64_t)mult;
if (s >= (INT32_MAX << INT64_C(24)))
if (s >= ((int64_t)INT32_MAX << INT64_C(24)))
*p = INT32_MAX;
else
if (s < (INT32_MIN << INT64_C(24)))
if (s < ((int64_t)INT32_MIN << INT64_C(24)))
*p = INT32_MIN;
else
*p = s >> INT64_C(24);
Expand Down

0 comments on commit d2ff094

Please sign in to comment.