From 7df35dabd5c64b128eed25138c85e2cef2ad675e Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine@gmail.com" Date: Sat, 10 Mar 2012 09:29:47 +0000 Subject: Fixed clang warning git-svn-id: http://pugixml.googlecode.com/svn/trunk@854 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 9af6fa4..bcfbbdd 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -5909,7 +5909,7 @@ namespace return PUGIXML_TEXT("NaN"); case FP_INFINITE: - return PUGIXML_TEXT("-Infinity") + (value > 0); + return value > 0 ? PUGIXML_TEXT("Infinity") : PUGIXML_TEXT("-Infinity"); case FP_ZERO: return PUGIXML_TEXT("0"); @@ -5923,7 +5923,7 @@ namespace if (v == 0) return PUGIXML_TEXT("0"); if (v != v) return PUGIXML_TEXT("NaN"); - if (v * 2 == v) return PUGIXML_TEXT("-Infinity") + (value > 0); + if (v * 2 == v) return value > 0 ? PUGIXML_TEXT("Infinity") : PUGIXML_TEXT("-Infinity"); return 0; #endif } -- cgit v1.2.3