Replace INT_MIN/MAX with INT32_MIN/MAX

This commit is contained in:
manongjohn 2021-07-02 01:12:41 -04:00
parent 26980f875a
commit 777647e1c6
1 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,6 @@
#include <iostream> #include <iostream>
#include "tools/platformTools.h" #include "tools/platformTools.h"
#include "tools/fileTools.h" #include "tools/fileTools.h"
#include <climits>
using std::runtime_error; using std::runtime_error;
using fmt::format; using fmt::format;
@ -179,7 +178,7 @@ inline AudioClip::value_type readSample(
case SampleFormat::Int32: case SampleFormat::Int32:
{ {
int raw = read<int>(file); int raw = read<int>(file);
sum += toNormalizedFloat(raw, INT_MIN, INT_MAX); sum += toNormalizedFloat(raw, INT32_MIN, INT32_MAX);
break; break;
} }
case SampleFormat::Float32: case SampleFormat::Float32: