Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: dab059cbea788c7283c2592b8c9a44c2e6dd909e
      
https://github.com/WebKit/WebKit/commit/dab059cbea788c7283c2592b8c9a44c2e6dd909e
  Author: Chris Dumez <[email protected]>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M Source/WTF/wtf/MathExtras.h

  Log Message:
  -----------
  Drop redundant `std::isnan()` checks in MathExtras.h
https://bugs.webkit.org/show_bug.cgi?id=311096

Reviewed by Darin Adler.

Drop redundant `std::isnan()` checks in MathExtras.h. `!std::isfinite()`
already covers the NaN case.

* Source/WTF/wtf/MathExtras.h:
(WTF::truncateDoubleToInt32):
(WTF::truncateDoubleToInt64):
(WTF::truncateDoubleToUint32):
(WTF::truncateDoubleToUint64):
(WTF::truncateFloatToInt32):
(WTF::truncateFloatToInt64):
(WTF::truncateFloatToUint32):
(WTF::truncateFloatToUint64):

Canonical link: https://commits.webkit.org/310270@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to