Bug 40346

Summary: Fix build breakage from 38145
Product: WebKit Reporter: Kenneth Russell <kbr>
Component: WebGLAssignee: Kenneth Russell <kbr>
Status: RESOLVED FIXED    
Severity: Normal CC: cmarrin, dglazkov, oliver, rolandsteiner, zmo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 38145    
Bug Blocks:    

Kenneth Russell
Reported 2010-06-08 19:01:42 PDT
The fix for bug 38145 broke the Chromium Win build because Microsoft's cmath doesn't define log2. Suggested fix by zmo is to change log2(x) to log(x) / log(2). Built and ran WebGL layout tests in Safari on Mac OS X.
Attachments
Kenneth Russell
Comment 1 2010-06-08 19:11:50 PDT
Roland Steiner
Comment 2 2010-06-08 22:38:58 PDT
The fix didn't catch - now the log function calls are ambiguous between float, double or long double versions. I added a 2nd quick fix in r60881 - adding explicit casts to double and double constants - which seems to have done the trick, at least as far as compilation goes (see http://trac.webkit.org/changeset/60881)
Note You need to log in before you can comment on or make changes to this bug.