Created attachment 170534 [details]
Fix type for pow() call in www/webkit2-gtk3
During the exp-run in bug 208158, it was found that www/webkit2-gtk3 gives errors with libc++ 3.8.0 :
/wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.8.5/Source/WebCore/rendering/shapes/BoxShape.cpp:46:40: error: call to 'pow' is ambiguous
return radius + (margin * (1 + pow(ratio - 1, 3)));
This is because ratio is of type LayoutUnit, which is a class that has both conversions to float and double. Therefore, it is ambiguous if pow(float) or pow(double) should be called. Fix it by explicitly casting to float, since it seems that most of the LayoutUnit handling is done with it.
*** Bug 209972 has been marked as a duplicate of this bug. ***
A commit references this bug:
Date: Sun Jun 5 19:11:57 UTC 2016
New revision: 416418
Add explicit cast to float to repair build with libc++ 3.8.0
Submitted by: dim
Assign to dim@ and close, as the fix was committed.