Skip to content

TSCExtensions: make explicit truncation of values#2689

Open
compnerd wants to merge 1 commit into
swiftlang:mainfrom
compnerd:truncation
Open

TSCExtensions: make explicit truncation of values#2689
compnerd wants to merge 1 commit into
swiftlang:mainfrom
compnerd:truncation

Conversation

@compnerd

Copy link
Copy Markdown
Member

We are silently truncating the values here as these are canonially typed as DWORD, i.e. UInt32. The conversion to Int32 is therefore truncating the value. Make this explicit to allow building with changes to the compiler to import windows constants with canonical types.

We are silently truncating the values here as these are canonially typed
as `DWORD`, i.e. `UInt32`. The conversion to `Int32` is therefore
truncating the value. Make this explicit to allow building with changes
to the compiler to import windows constants with canonical types.
@ahoppen

ahoppen commented Jun 10, 2026

Copy link
Copy Markdown
Member

@swift-ci Please test

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.

2 participants