[SCM] WebKit Debian packaging branch, webkit-1.2, updated. upstream/1.1.90-6072-g9a69373

eric at webkit.org eric at webkit.org
Thu Apr 8 00:41:54 UTC 2010


The following commit has been merged in the webkit-1.2 branch:
commit 7ad2d044b1c0485b6377f7e600a0ed4dcc872494
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Fri Dec 18 07:17:12 2009 +0000

    2009-12-17  Eric Seidel  <eric at webkit.org>
    
            Reviewed by Darin Adler.
    
            HTMLInputElement::stepMismatch() uses ambiguous overload of pow()
            https://bugs.webkit.org/show_bug.cgi?id=32675
    
            Use the double constant 2.0 instead of static_cast<double>(2).
    
            * html/HTMLInputElement.cpp:
            (WebCore::HTMLInputElement::stepMismatch):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52302 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 3b55a2e..78f59aa 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,15 @@
+2009-12-17  Eric Seidel  <eric at webkit.org>
+
+        Reviewed by Darin Adler.
+
+        HTMLInputElement::stepMismatch() uses ambiguous overload of pow()
+        https://bugs.webkit.org/show_bug.cgi?id=32675
+
+        Use the double constant 2.0 instead of static_cast<double>(2).
+
+        * html/HTMLInputElement.cpp:
+        (WebCore::HTMLInputElement::stepMismatch):
+
 2009-12-17  Justin Schuh  <jschuh at chromium.org>
 
         Reviewed by Dan Bernstein.
diff --git a/WebCore/html/HTMLInputElement.cpp b/WebCore/html/HTMLInputElement.cpp
index 602b339..ffa4aac 100644
--- a/WebCore/html/HTMLInputElement.cpp
+++ b/WebCore/html/HTMLInputElement.cpp
@@ -337,11 +337,11 @@ bool HTMLInputElement::stepMismatch() const
         // double's fractional part size is DBL_MAN_DIG-bit.  If the current
         // value is greater than step*2^DBL_MANT_DIG, the following fmod() makes
         // no sense.
-        if (doubleValue / pow(static_cast<double>(2), DBL_MANT_DIG) > step)
+        if (doubleValue / pow(2.0, DBL_MANT_DIG) > step)
             return false;
         double remainder = fmod(doubleValue, step);
         // Accepts errors in lower 7-bit.
-        double acceptableError = step / pow(static_cast<double>(2), DBL_MANT_DIG - 7);
+        double acceptableError = step / pow(2.0, DBL_MANT_DIG - 7);
         return acceptableError < remainder && remainder < (step - acceptableError);
     }
     // Non-RANGE types should be rejected by getAllowedValueStep().

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list