Title: [226331] trunk/Source/_javascript_Core
- Revision
- 226331
- Author
- [email protected]
- Date
- 2018-01-02 12:20:16 -0800 (Tue, 02 Jan 2018)
Log Message
Fix the MathCommon build with a recent compiler
https://bugs.webkit.org/show_bug.cgi?id=181216
Reviewed by Sam Weinig.
* runtime/MathCommon.cpp:
(JSC::fdlibmPow):
This cast drops the 'const' qualifier from the pointer to 'one',
but it doesn't have to, and it makes the compiler sad.
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (226330 => 226331)
--- trunk/Source/_javascript_Core/ChangeLog 2018-01-02 20:02:50 UTC (rev 226330)
+++ trunk/Source/_javascript_Core/ChangeLog 2018-01-02 20:20:16 UTC (rev 226331)
@@ -1 +1,13 @@
+2018-01-02 Tim Horton <[email protected]>
+
+ Fix the MathCommon build with a recent compiler
+ https://bugs.webkit.org/show_bug.cgi?id=181216
+
+ Reviewed by Sam Weinig.
+
+ * runtime/MathCommon.cpp:
+ (JSC::fdlibmPow):
+ This cast drops the 'const' qualifier from the pointer to 'one',
+ but it doesn't have to, and it makes the compiler sad.
+
== Rolled over to ChangeLog-2018-01-01 ==
Modified: trunk/Source/_javascript_Core/runtime/MathCommon.cpp (226330 => 226331)
--- trunk/Source/_javascript_Core/runtime/MathCommon.cpp 2018-01-02 20:02:50 UTC (rev 226330)
+++ trunk/Source/_javascript_Core/runtime/MathCommon.cpp 2018-01-02 20:20:16 UTC (rev 226331)
@@ -179,7 +179,7 @@
int hx,hy,ix,iy;
unsigned lx,ly;
- i0 = ((*(int*)&one)>>29)^1; i1=1-i0;
+ i0 = ((*(const int*)&one)>>29)^1; i1=1-i0;
hx = __HI(x); lx = __LO(x);
hy = __HI(y); ly = __LO(y);
ix = hx&0x7fffffff; iy = hy&0x7fffffff;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes