]> git.mxchange.org Git - simgear.git/commitdiff
Fix a compiler wrning
authorErik Hofman <erik@ehofman.com>
Sun, 3 Jul 2016 07:44:04 +0000 (09:44 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 13 Aug 2016 08:21:16 +0000 (10:21 +0200)
simgear/misc/sg_path.cxx

index 0d5140eb94d2e3925484d2d6ae01c826b1222608..2ae206a05e5b469e62c5d76b1cb7c12cb6711707 100644 (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();
        }