Commit 35790fbd authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

2010-10-19 Kwang Yul Seo <skyul@company100.net>

        Reviewed by David Kilzer.

        RVCT fails to compile DateMath.cpp due to overloaded function pow
        https://bugs.webkit.org/show_bug.cgi?id=47844

        Choose std::pow(double, double) among multiple overloaded pow functions
        to fix build for RVCT.

        * wtf/DateMath.cpp:
        (WTF::parseES5DateFromNullTerminatedCharacters):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70076 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 7899395e
2010-10-19 Kwang Yul Seo <skyul@company100.net>
Reviewed by David Kilzer.
RVCT fails to compile DateMath.cpp due to overloaded function pow
https://bugs.webkit.org/show_bug.cgi?id=47844
Choose std::pow(double, double) among multiple overloaded pow functions
to fix build for RVCT.
* wtf/DateMath.cpp:
(WTF::parseES5DateFromNullTerminatedCharacters):
2010-10-19 Patrick Gansterer <paroga@webkit.org>
Reviewed by David Kilzer.
......
......@@ -639,7 +639,7 @@ double parseES5DateFromNullTerminatedCharacters(const char* dateString)
return NaN;
long numFracDigits = postParsePosition - currentPosition;
seconds += fracSeconds * pow(10, -numFracDigits);
seconds += fracSeconds * pow(10.0, static_cast<double>(-numFracDigits));
}
currentPosition = postParsePosition;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment