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

silence warnings: use int32_t for chars more consistently #282

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

stevengj
Copy link
Member

@stevengj stevengj commented Dec 31, 2024

Fixes the warnings introduced by #277, and noted here: #280 (comment)

cc @eschnett

(I don't recall why int32_t is used for characters, rather than unsigned; maybe -1 is used as a sentinel somewhere? Or maybe it's because wchar_t is often signed on Unix systems where it is 32 bits? In any case, it's safe, since the maximum codepoint is only 10FFFF.)

@stevengj stevengj merged commit 701fbc4 into master Dec 31, 2024
12 checks passed
@stevengj stevengj deleted the fixwarnings branch December 31, 2024 19: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.

1 participant