From 89020df4ba2cee6476ca517a18316d3bc42f1aa9 Mon Sep 17 00:00:00 2001 From: Stepland <10530295-Buggyroom@users.noreply.gitlab.com> Date: Tue, 27 Dec 2022 20:00:55 +0100 Subject: [PATCH] use intmax macro instead of numeric_limits because fucking windows gcc can't make use of it of course --- src/custom_sfml_audio/sampler_callback.cpp | 2 +- src/custom_sfml_audio/sampler_callback.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/custom_sfml_audio/sampler_callback.cpp b/src/custom_sfml_audio/sampler_callback.cpp index e7aa37e..6d6f5e8 100644 --- a/src/custom_sfml_audio/sampler_callback.cpp +++ b/src/custom_sfml_audio/sampler_callback.cpp @@ -20,7 +20,7 @@ void copy_sample_at_points( if (next != starting_points.end()) { return *next; } else { - return std::numeric_limits::max(); + return INT64_MAX; } }(it) ); diff --git a/src/custom_sfml_audio/sampler_callback.hpp b/src/custom_sfml_audio/sampler_callback.hpp index 22ff74a..8fff66e 100644 --- a/src/custom_sfml_audio/sampler_callback.hpp +++ b/src/custom_sfml_audio/sampler_callback.hpp @@ -35,7 +35,7 @@ void copy_sample_at_points( if (next != starting_points.end()) { return next->first; } else { - return std::numeric_limits::max(); + return INT64_MAX; } }(it) );