fixed typecast typo in file.cpp

This commit is contained in:
Arvid Norberg 2008-09-25 00:16:41 +00:00
parent 19b6525932
commit 92bac424eb
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}