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) );