From: Erik Hofman <erik@ehofman.com>
Date: Sun, 3 Jul 2016 07:44:04 +0000 (+0200)
Subject: Fix a compiler wrning
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4b8aae3781633535304152add4b57044674bc3a4;p=simgear.git

Fix a compiler wrning
---

diff --git a/simgear/misc/sg_path.cxx b/simgear/misc/sg_path.cxx
index 0d5140eb..2ae206a0 100644
--- a/simgear/misc/sg_path.cxx
+++ b/simgear/misc/sg_path.cxx
@@ -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();
        }