Fix a compiler wrning

This commit is contained in:
Erik Hofman 2016-07-03 09:44:04 +02:00
parent 98de216878
commit efa1292b2d

View File

@ -991,7 +991,7 @@ std::wstring SGPath::wstr() const
wchar_t wideBuf = malloc(buflen * sizeof(int));
if (wideBuf) {
size_t count = mbstowcs(wideBuf, path.c_str(), buflen);
if (count == -1) {
if (count == (size_t)-1) {
return std::wstring();
}