Replace INT_MIN/MAX with INT32_MIN/MAX
This commit is contained in:
parent
26980f875a
commit
777647e1c6
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue