From 777647e1c6368f4d47cf3bca9464b88f8df239b3 Mon Sep 17 00:00:00 2001 From: manongjohn Date: Fri, 2 Jul 2021 01:12:41 -0400 Subject: [PATCH] Replace INT_MIN/MAX with INT32_MIN/MAX --- rhubarb/src/audio/WaveFileReader.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rhubarb/src/audio/WaveFileReader.cpp b/rhubarb/src/audio/WaveFileReader.cpp index 30da921..5e4dd5e 100644 --- a/rhubarb/src/audio/WaveFileReader.cpp +++ b/rhubarb/src/audio/WaveFileReader.cpp @@ -4,7 +4,6 @@ #include #include "tools/platformTools.h" #include "tools/fileTools.h" -#include using std::runtime_error; using fmt::format; @@ -179,7 +178,7 @@ inline AudioClip::value_type readSample( case SampleFormat::Int32: { int raw = read(file); - sum += toNormalizedFloat(raw, INT_MIN, INT_MAX); + sum += toNormalizedFloat(raw, INT32_MIN, INT32_MAX); break; } case SampleFormat::Float32: