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

Upper/lowercase formatting of hex integers #1353

Merged
merged 6 commits into from Nov 28, 2020
Merged

Conversation

cgay
Copy link
Member

@cgay cgay commented Nov 27, 2020

Just trying to pick off an easy bug, #1054 3-stage bootstrap works. I didn't update all current uses of %x to be %X but that would be the minimal change. However, I feel like this is pretty safe since I believe C code can generally handle both upper and lowercase hex numbers, and that seems like the most likely non-carbon-based consumer of this kind of output.

Fixes #1054

@pedro-w
Copy link
Contributor

pedro-w commented Nov 27, 2020

Should there be a test for this, in sources/common-dylan/tests/functions.dylan maybe?

@cgay
Copy link
Member Author

cgay commented Nov 27, 2020

Should there be a test for this, in sources/common-dylan/tests/functions.dylan maybe?

There is! :-)

@pedro-w
Copy link
Contributor

pedro-w commented Nov 27, 2020

🤦‍♂️

@cgay cgay merged commit 6d2d3dd into dylan-lang:master Nov 28, 2020
@cgay cgay deleted the format-integer branch March 22, 2024 04:58
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.

Formatting hex numbers with either lowercase or uppercase A-F
3 participants