Title: [283163] trunk/Source/WTF
- Revision
- 283163
- Author
- [email protected]
- Date
- 2021-09-28 03:29:43 -0700 (Tue, 28 Sep 2021)
Log Message
Unreviewed, fix Windows build
https://bugs.webkit.org/show_bug.cgi?id=230876
* wtf/GenericTimeMixin.h:
(WTF::GenericTimeMixin::operator+=):
(WTF::GenericTimeMixin::operator-=):
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (283162 => 283163)
--- trunk/Source/WTF/ChangeLog 2021-09-28 10:15:26 UTC (rev 283162)
+++ trunk/Source/WTF/ChangeLog 2021-09-28 10:29:43 UTC (rev 283163)
@@ -1,3 +1,12 @@
+2021-09-28 Yusuke Suzuki <[email protected]>
+
+ Unreviewed, fix Windows build
+ https://bugs.webkit.org/show_bug.cgi?id=230876
+
+ * wtf/GenericTimeMixin.h:
+ (WTF::GenericTimeMixin::operator+=):
+ (WTF::GenericTimeMixin::operator-=):
+
2021-09-27 Yusuke Suzuki <[email protected]>
[WTF] Add ApproximateTime
Modified: trunk/Source/WTF/wtf/GenericTimeMixin.h (283162 => 283163)
--- trunk/Source/WTF/wtf/GenericTimeMixin.h 2021-09-28 10:15:26 UTC (rev 283162)
+++ trunk/Source/WTF/wtf/GenericTimeMixin.h 2021-09-28 10:29:43 UTC (rev 283163)
@@ -71,12 +71,12 @@
DerivedTime operator+=(Seconds other)
{
- return *this = *this + other;
+ return *static_cast<DerivedTime*>(this) = *static_cast<DerivedTime*>(this) + other;
}
DerivedTime operator-=(Seconds other)
{
- return *this = *this - other;
+ return *static_cast<DerivedTime*>(this) = *static_cast<DerivedTime*>(this) - other;
}
constexpr Seconds operator-(DerivedTime other) const
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes