mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-30 20:41:00 +00:00
Change INT_MAX back to 0x80000000
- I had it like this before but I changed it because I saw it and thought "Hey! That's INT_MAX! Let's use that!" Turns out I need to explicitly include <limits.h> on non VC++, so meh.
This commit is contained in:
parent
cd38e5e6be
commit
226de40a17
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ int32 dumb_resample(DUMB_RESAMPLER *resampler, sample_t *dst, int32 dst_size, VO
|
|||
|
||||
done = 0;
|
||||
dt = xs_CRoundToInt(delta * 65536.0);
|
||||
if (dt == 0 || dt == INT_MIN) return 0;
|
||||
if (dt == 0 || dt == 0x80000000) return 0;
|
||||
inv_dt = xs_CRoundToInt(1.0 / delta * 65536.0);
|
||||
SET_VOLUME_VARIABLES;
|
||||
|
||||
|
|
Loading…
Reference in a new issue