From 1d4f91c9e1f5d104d4b30e6d4c6c4d689cfb997f Mon Sep 17 00:00:00 2001 From: DakkJaniels <6080734+DakkJaniels@users.noreply.github.com> Date: Mon, 9 May 2022 16:33:44 -0400 Subject: [PATCH] add parenthesis to max --- Source/capture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/capture.cpp b/Source/capture.cpp index 043abe64d..7d41033cb 100644 --- a/Source/capture.cpp +++ b/Source/capture.cpp @@ -131,7 +131,7 @@ bool CapturePix(const Surface &buf, std::ofstream *out) std::ofstream CaptureFile(std::string *dstPath) { char filename[sizeof("screen0000000000.PCX") / sizeof(char)]; - for (uint32_t i = 0; i <= (uint32_t)std::numeric_limits::max; ++i) { + for (uint32_t i = 0; i <= std::numeric_limits::max(); ++i) { snprintf(filename, sizeof(filename) / sizeof(char), "screen%d.PCX", i); *dstPath = paths::PrefPath() + filename; if (!FileExists(dstPath->c_str())) {