mirror of
https://github.com/zeux/pugixml.git
synced 2024-12-31 00:13:01 +08:00
Fixed clang warning
git-svn-id: http://pugixml.googlecode.com/svn/trunk@854 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
234d4c030f
commit
7df35dabd5
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user