From cd09cda6ff128dbe47f370ec45955383f4d1b06d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20D=C3=ADaz=20M=C3=A1s?= Date: Tue, 6 Nov 2018 18:59:22 +0100 Subject: [PATCH] Clarify calculation precedence for >> and ? --- include/exiv2/types.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/exiv2/types.hpp b/include/exiv2/types.hpp index 73280c09..2113f7c3 100644 --- a/include/exiv2/types.hpp +++ b/include/exiv2/types.hpp @@ -546,7 +546,7 @@ namespace Exiv2 { { std::istringstream is(s); T tmp; - ok = is >> tmp ? true : false; + ok = (is >> tmp) ? true : false; std::string rest; is >> std::skipws >> rest; if (!rest.empty()) ok = false;