summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640>2012-03-10 09:29:47 +0000
committerarseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640>2012-03-10 09:29:47 +0000
commit7df35dabd5c64b128eed25138c85e2cef2ad675e (patch)
tree833b36a8ffabd4536405a903978b87851b2eef35
parent234d4c030f0779bde628888f91447f172248f0e4 (diff)
Fixed clang warning
git-svn-id: http://pugixml.googlecode.com/svn/trunk@854 99668b35-9821-0410-8761-19e4c4f06640
-rw-r--r--src/pugixml.cpp4
1 files 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
}