Commit 8f988a0a authored by Nikolai Kosjar's avatar Nikolai Kosjar Committed by Nikolai Kosjar
Browse files

C++: Compile fix for MSVC

Change-Id: Ie6399ae95b1dee84dc85fe2e7634c020b312a9a7
Reviewed-by: default avatarPrzemyslaw Gorszkowski <>
Reviewed-by: default avatarAlessandro Portale <>
parent 70c9c51e
......@@ -483,7 +483,7 @@ bool stringLiteralToInt(const StringLiteral *stringLiteral, int *output)
std::stringstream ss(std::string(stringLiteral->chars(), stringLiteral->size()));
const bool ok = ss >> *output;
const bool ok = !(ss >> *output).fail();
if (!ok)
*output = 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment