Bug 47844 - RVCT fails to compile DateMath.cpp due to overloaded function pow
Summary: RVCT fails to compile DateMath.cpp due to overloaded function pow
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other Other
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-18 13:45 PDT by Kwang Yul Seo
Modified: 2010-10-19 12:43 PDT (History)
2 users (show)

See Also:


Attachments
Patch (1.26 KB, patch)
2010-10-18 13:49 PDT, Kwang Yul Seo
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kwang Yul Seo 2010-10-18 13:45:30 PDT
RVCT fails to compile DateMath.cpp with the following compile error:


    "..\JavaScriptCore\wtf\DateMath.cpp", line 642: Error:  #308: more than one instance of overloaded function "pow" matches the argument list:
                function "std::pow(double, double)"
                function "std::pow(float, float)"
                function "std::pow(float, int)"
                function "std::pow(double, int)"
                function "std::pow(long double, long double)"
                function "std::pow(long double, int)"
                argument types are: (int, long)
              seconds += fracSeconds * pow(10, -numFracDigits);

We need to add an explicit cast to the arguments of pow.
Comment 1 Kwang Yul Seo 2010-10-18 13:49:12 PDT
Created attachment 71076 [details]
Patch
Comment 2 David Kilzer (:ddkilzer) 2010-10-19 11:49:53 PDT
Comment on attachment 71076 [details]
Patch

r=me
Comment 3 WebKit Commit Bot 2010-10-19 12:43:54 PDT
Comment on attachment 71076 [details]
Patch

Clearing flags on attachment: 71076

Committed r70076: <http://trac.webkit.org/changeset/70076>
Comment 4 WebKit Commit Bot 2010-10-19 12:43:59 PDT
All reviewed patches have been landed.  Closing bug.