Use the max function in main.cpp

This commit is contained in:
Username404 2021-09-25 17:03:55 +02:00
parent 3cddc7907e
commit 66e1926783
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ int main(int argc, char* argv[]) {
#else #else
unsigned long position2 = fileName.find_last_of('\\'); unsigned long position2 = fileName.find_last_of('\\');
if (cmp_not_equal(position2, string_view::npos)) { if (cmp_not_equal(position2, string_view::npos)) {
lastSlash = (position1 > position2) ? position1 : position2; lastSlash = max(position1, position2);
} }
#endif #endif
} }