[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/kdom/xpath/data
From:       Nikolas Zimmermann <wildfox () kde ! org>
Date:       2006-01-21 18:36:47
Message-ID: 1137868607.314116.2067.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 500982 by wildfox:

Commit some obvious c&p fixes :-)


 M  +3 -3      Integer.cpp  


--- trunk/kdenonbeta/kdom/xpath/data/Integer.cpp #500981:500982
@@ -60,7 +60,7 @@
 
 bool Integer::evaluateEBV(const DynamicContext::Ptr &) const
 {
-    if(m_value == 0 || std::isnan(m_value))
+    if(m_value == 0)
         return false;
     else
         return true;
@@ -110,7 +110,7 @@
 
 Numeric::Ptr Integer::floor() const
 {
-    return Numeric::Ptr(new Integer(static_cast<xsInteger>(std::floor(m_value))));
+    return Numeric::Ptr(const_cast<Integer *>(this));
 }
 
 Numeric::Ptr Integer::ceiling() const
@@ -120,7 +120,7 @@
 
 Numeric::Ptr Integer::abs() const
 {
-    return Numeric::Ptr(new Integer(static_cast<xsInteger>(std::fabs(m_value))));
+    return Numeric::Ptr(new Integer(static_cast<xsInteger>(std::abs(m_value))));
 }
 
 bool Integer::isNaN() const
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic