You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows, `NTSTATUS` is a typedef of `long`. On 32-bit Windows, `long`
is imported into Swift as `Int` but on 64-bit Windows,it's imported as
`Int32`. These types are layout-equivalent but not implicitly
convertible, so we get errors on 32-bit Windows when using an `NTSTATUS`
(i.e. `Int`) where a `CInt` (i.e. `Int32`) is expected.
This PR changes the types of the constants introduced in #766 to be
explicitly `CInt` so that they are usable on both flavours of Windows.
### Checklist:
- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.
0 commit comments