Skip to content

ArgumentParser: make invalid cast explicit#913

Merged
rauhul merged 1 commit into
apple:mainfrom
compnerd:conversion
May 31, 2026
Merged

ArgumentParser: make invalid cast explicit#913
rauhul merged 1 commit into
apple:mainfrom
compnerd:conversion

Conversation

@compnerd

Copy link
Copy Markdown
Collaborator

The error codes on Windows are unsigned (and do make use of the sign bit). We explicitly treat the values as signed, so make the conversion explicit. This is required with future enhancements to enable canonical importing of constants on Windows.

The error codes on Windows are unsigned (and do make use of the sign
bit). We explicitly treat the values as signed, so make the conversion
explicit. This is required with future enhancements to enable canonical
importing of constants on Windows.
@rauhul rauhul merged commit 955d761 into apple:main May 31, 2026
34 checks passed
@compnerd compnerd deleted the conversion branch June 1, 2026 04:17
@natecook1000

Copy link
Copy Markdown
Member

@compnerd Is this issue something that is catchable in testing?

@compnerd

compnerd commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator Author

@natecook1000 sadly not - its an API shape thing: Int32 vs UInt32.

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.

3 participants