From 7fbed3b382ea0b37e9ff3117e544133829788c3f Mon Sep 17 00:00:00 2001 From: Jez Higgins Date: Sat, 9 Jan 2010 23:01:41 +0000 Subject: [PATCH] fixed ambiguous else --- include/XPath/impl/xpath_object.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/XPath/impl/xpath_object.hpp b/include/XPath/impl/xpath_object.hpp index 7ed446b3..e0ab41e7 100644 --- a/include/XPath/impl/xpath_object.hpp +++ b/include/XPath/impl/xpath_object.hpp @@ -407,10 +407,12 @@ namespace impl inline double roundNumber(double value) { if(!(isNaN(value) || isInfinite(value) || (std::fabs(value) == 0))) + { if((value < 0.0) && (value > -0.5)) value = -0.0; else value = std::floor(value + 0.5); + } // if ... return value; } // roundNumber