Changeset 231864 in webkit
- Timestamp:
- May 16, 2018 12:46:22 PM (6 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r231852 r231864 1 2018-05-16 Yusuke Suzuki <utatane.tea@gmail.com> 2 3 Unreviewed, follow-up after r231762 4 https://bugs.webkit.org/show_bug.cgi?id=185589 5 6 Addresses darin's suggestions to improve timeClip. 7 8 * wtf/DateMath.cpp: 9 (WTF::timeClip): 10 1 11 2018-05-14 Yusuke Suzuki <utatane.tea@gmail.com> 2 12 -
trunk/Source/WTF/wtf/DateMath.cpp
r231762 r231864 1156 1156 double timeClip(double t) 1157 1157 { 1158 if (!std::isfinite(t)) 1159 return std::numeric_limits<double>::quiet_NaN(); 1160 if (fabs(t) > maxECMAScriptTime) 1161 return std::numeric_limits<double>::quiet_NaN(); 1162 return trunc(t) + 0.0; 1158 if (std::abs(t) > maxECMAScriptTime) 1159 return std::numeric_limits<double>::quiet_NaN(); 1160 return std::trunc(t) + 0.0; 1163 1161 } 1164 1162
Note: See TracChangeset
for help on using the changeset viewer.