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

AK: Fix {:c} formatter for big-endian #24686

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

sideeffect42
Copy link
Contributor

Just casting an integer type to a char pointer does not work on big endian.
Instead, the value needs to be properly converted into a char.

I uncommented the 7-bit ASCII check while at it. I think it's better to be safer than necessary to spot cases where high ASCII/UTF-8 support would be needed earlier.


This is a copy of LadybirdBrowser/ladybird#434 and has not been tested in SerenityOS, because I don't have a system running SerenityOS.

@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label Jul 10, 2024
Copy link

stale bot commented Aug 1, 2024

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!

@stale stale bot added the stale label Aug 1, 2024
AK/Format.cpp Outdated Show resolved Hide resolved
AK/Format.cpp Show resolved Hide resolved
@timschumi timschumi merged commit b367479 into SerenityOS:master Aug 6, 2024
11 checks passed
@github-actions github-actions bot removed the 👀 pr-needs-review PR needs review from a maintainer or community member label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants