From b57ed2c119c1e5df54fe3f4ee2c9ef2f34dacaff Mon Sep 17 00:00:00 2001 From: Koncord Date: Thu, 17 Nov 2016 12:43:29 +0800 Subject: [PATCH] Fix parameter type mismatch --- components/openmw-mp/Log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/openmw-mp/Log.cpp b/components/openmw-mp/Log.cpp index 5da974bb7..4a22355cb 100644 --- a/components/openmw-mp/Log.cpp +++ b/components/openmw-mp/Log.cpp @@ -97,7 +97,7 @@ void Log::print(int level, bool hasPrefix, const char *file, int line, const cha sstr << '\n'; va_list args; va_start(args, message); - vector buf(vsnprintf(NULL, 0, sstr.str().c_str(), args) + 1); + vector buf((unsigned long) (vsnprintf(NULL, 0, sstr.str().c_str(), args) + 1)); va_end(args); va_start(args, message); vsnprintf(buf.data(), buf.size(), sstr.str().c_str(), args);