Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Lexer build with -Werror=type-limits #21169

Conversation

@blino blino requested a review from a team as a code owner December 1, 2023 17:09
@blino blino self-assigned this Dec 1, 2023
@blino blino added the WebCore Misc. For miscellaneous bugs in the WebCore framework (and not JavaScriptCore or WebKit). label Dec 1, 2023
@blino blino requested a review from darinadler December 1, 2023 17:10
@darinadler darinadler added the merge-queue Applied to send a pull request to merge-queue label Dec 1, 2023
@webkit-commit-queue webkit-commit-queue force-pushed the eng/Fix-Lexer-build-with--Werrortype-limits branch from 5e13a1e to 1d4d659 Compare December 1, 2023 18:35
https://bugs.webkit.org/show_bug.cgi?id=265676

Reviewed by Darin Adler.

After 271373@main which uses char32_t instead of UChar32, build of
Lexer.cpp was broken with -Werror=type-limits

codePoint is now always positive, remove the assert.

* Source/JavaScriptCore/parser/Lexer.cpp:
(JSC::Lexer<CharacterType>::recordUnicodeCodePoint):

Canonical link: https://commits.webkit.org/271393@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/Fix-Lexer-build-with--Werrortype-limits branch from 1d4d659 to 52f1f95 Compare December 1, 2023 18:38
@webkit-commit-queue
Copy link
Collaborator

Committed 271393@main (52f1f95): https://commits.webkit.org/271393@main

Reviewed commits have been landed. Closing PR #21169 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 52f1f95 into WebKit:main Dec 1, 2023
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Dec 1, 2023
@blino blino deleted the eng/Fix-Lexer-build-with--Werrortype-limits branch December 4, 2023 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebCore Misc. For miscellaneous bugs in the WebCore framework (and not JavaScriptCore or WebKit).
Projects
None yet
4 participants