[webkit-changes] [WebKit/WebKit] 198d2e: [WTF] Converting NumberToStringBuffer to std::span...
Commit Queue
noreply at github.com
Thu Sep 26 18:48:32 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 198d2e7875d61959221e6a532bb67b4f5878701d
https://github.com/WebKit/WebKit/commit/198d2e7875d61959221e6a532bb67b4f5878701d
Author: David Kilzer <ddkilzer at apple.com>
Date: 2024-09-26 (Thu, 26 Sep 2024)
Changed paths:
M Source/WTF/wtf/text/StringConcatenateNumbers.h
Log Message:
-----------
[WTF] Converting NumberToStringBuffer to std::span should not ignore std::array size
<https://bugs.webkit.org/show_bug.cgi?id=280089>
<rdar://136388770>
Reviewed by Geoffrey Garen.
* Source/WTF/wtf/text/StringConcatenateNumbers.h:
(WTF::StringTypeAdapter<FloatingPoint>::span const):
(WTF::FormattedNumber::span const):
(WTF::FormattedCSSNumber::span const):
- Create std::span from std::array, then use span::first() to reduce the
size of the span. This ensures that the size of the std::array is
checked when creating the std::span.
Canonical link: https://commits.webkit.org/284325@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list