fixed typecast typo in file.cpp
This commit is contained in:
parent
19b6525932
commit
92bac424eb
|
@ -95,7 +95,7 @@ namespace
|
|||
std::string ret;
|
||||
ret.resize(size);
|
||||
size = wcstombs(&ret[0], ws.c_str(), size + 1);
|
||||
if (size == wchar_t(-1)) return s;
|
||||
if (size == std::size_t(-1)) return s;
|
||||
ret.resize(size);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue