diff options
author | Chris Robinson <[email protected]> | 2017-12-17 15:56:30 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-12-17 15:56:30 -0800 |
commit | 8253014fe9e8cc6b7e1ea0b839e7c1a11e1524c1 (patch) | |
tree | 3a0dc563bc81c46a592b9c810a6a21bb9a12d903 /Alc/converter.c | |
parent | 57e516720e6e91978360853ee37c2bbb28fbdc8f (diff) |
Fix some types to make MSVC happy
Diffstat (limited to 'Alc/converter.c')
-rw-r--r-- | Alc/converter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/converter.c b/Alc/converter.c index 913a3ed3..56dbc79e 100644 --- a/Alc/converter.c +++ b/Alc/converter.c @@ -26,7 +26,7 @@ SampleConverter *CreateSampleConverter(enum DevFmtType srcType, enum DevFmtType /* Have to set the mixer FPU mode since that's what the resampler code expects. */ START_MIXER_MODE(); - step = fastf2i(minf((ALdouble)srcRate / dstRate, MAX_PITCH)*FRACTIONONE + 0.5f); + step = fastf2i((ALfloat)mind((ALdouble)srcRate / dstRate, MAX_PITCH)*FRACTIONONE + 0.5f); converter->mIncrement = maxi(step, 1); if(converter->mIncrement == FRACTIONONE) converter->mResample = Resample_copy_C; |