From b0df66897535a064779dc8a3474b440cc7013ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 25 Jul 2015 13:23:48 +0200 Subject: [PATCH] fix VS warning --- lib/errorlogger.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/errorlogger.cpp b/lib/errorlogger.cpp index eddf58fe7..4d14657a4 100644 --- a/lib/errorlogger.cpp +++ b/lib/errorlogger.cpp @@ -159,7 +159,8 @@ bool ErrorLogger::ErrorMessage::deserialize(const std::string &data) _id = results[0]; _severity = Severity::fromString(results[1]); - _cwe = MathLib::toULongNumber(results[2]); + std::istringstream scwe(results[2]); + scwe >> _cwe; _shortMessage = results[3]; _verboseMessage = results[4];