From 66e1926783e81cb537f8080052544398c1d518ae Mon Sep 17 00:00:00 2001 From: Username404 Date: Sat, 25 Sep 2021 17:03:55 +0200 Subject: [PATCH] Use the max function in main.cpp --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index d1bfd4a..1e77e27 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -56,7 +56,7 @@ int main(int argc, char* argv[]) { #else unsigned long position2 = fileName.find_last_of('\\'); if (cmp_not_equal(position2, string_view::npos)) { - lastSlash = (position1 > position2) ? position1 : position2; + lastSlash = max(position1, position2); } #endif }