Bug 47844

Summary: RVCT fails to compile DateMath.cpp due to overloaded function pow
Product: WebKit Reporter: Kwang Yul Seo <skyul>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ddkilzer
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: Other   
Attachments:
Description Flags
Patch none

Kwang Yul Seo
Reported 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.
Attachments
Patch (1.26 KB, patch)
2010-10-18 13:49 PDT, Kwang Yul Seo
no flags
Kwang Yul Seo
Comment 1 2010-10-18 13:49:12 PDT
David Kilzer (:ddkilzer)
Comment 2 2010-10-19 11:49:53 PDT
Comment on attachment 71076 [details] Patch r=me
WebKit Commit Bot
Comment 3 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>
WebKit Commit Bot
Comment 4 2010-10-19 12:43:59 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.