Use wchar overload of find_last_of

C++ is a silly language.
This commit is contained in:
Fabian Homborg 2021-09-20 22:23:45 +02:00
parent 8b27a69ae4
commit 359b487793

View File

@ -549,7 +549,7 @@ static maybe_t<size_t> find_extension (const wcstring &path) {
// If we don't have a "." or the "." is the first in the filename,
// we do not have an extension
size_t pos = filename.find_last_of(L".");
size_t pos = filename.find_last_of(L'.');
if (pos == wcstring::npos || pos == 0) {
return none();
}