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:
Randy Heit 2015-03-08 16:30:18 -05:00
parent cd38e5e6be
commit 226de40a17

View file

@ -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;