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 }