Title: [127114] trunk/Source/WTF
- Revision
- 127114
- Author
- [email protected]
- Date
- 2012-08-30 01:38:18 -0700 (Thu, 30 Aug 2012)
Log Message
Build fix for COMPILER(MSVC) && !CPU(X86) after r127001.
* wtf/MathExtras.h:
(lrint): Added additional parentheses to silence compiler warning.
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (127113 => 127114)
--- trunk/Source/WTF/ChangeLog 2012-08-30 08:25:28 UTC (rev 127113)
+++ trunk/Source/WTF/ChangeLog 2012-08-30 08:38:18 UTC (rev 127114)
@@ -1,3 +1,10 @@
+2012-08-30 Patrick Gansterer <[email protected]>
+
+ Build fix for COMPILER(MSVC) && !CPU(X86) after r127001.
+
+ * wtf/MathExtras.h:
+ (lrint): Added additional parentheses to silence compiler warning.
+
2012-08-29 Benjamin Poulain <[email protected]>
REGRESSION(r126780): Crash using StringImpl::is8Bit before checking if there is an impl
Modified: trunk/Source/WTF/wtf/MathExtras.h (127113 => 127114)
--- trunk/Source/WTF/wtf/MathExtras.h 2012-08-30 08:25:28 UTC (rev 127113)
+++ trunk/Source/WTF/wtf/MathExtras.h 2012-08-30 08:38:18 UTC (rev 127114)
@@ -218,7 +218,7 @@
// If the fractional part is exactly 0.5, we need to check whether
// the rounded result is even. If it is not we need to add 1 to
// negative values and subtract one from positive values.
- if (fabs(intgr - flt) == 0.5 & intgr)
+ if ((fabs(intgr - flt) == 0.5) & intgr)
intgr -= ((intgr >> 62) | 1); // 1 with the sign of result, i.e. -1 or 1.
#endif
return static_cast<long int>(intgr);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes