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 <pgorszkowski@gmail.com>
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@digia.com>
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