Skip to content

Fixes for TestNSURL.swift on 32-bit (NFC) #262

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

Merged
merged 1 commit into from
Feb 25, 2016
Merged

Fixes for TestNSURL.swift on 32-bit (NFC) #262

merged 1 commit into from
Feb 25, 2016

Conversation

hpux735
Copy link
Contributor

@hpux735 hpux735 commented Feb 14, 2016

This is a relatively minor patch that casts the result of sizeof to UInt so that UInt32 (from 32-bit machines) is promoted to match the other logic.

@gribozavr
Copy link
Contributor

Are you sure this is not a symptom of incorrectly importing some API on Linux/armv7, for example, strlen()?

@hpux735
Copy link
Contributor Author

hpux735 commented Feb 21, 2016

@gribozavr sorry for the delay in getting back, I was focusing on that other PR. I don't see anywhere where strlen is imported differently from other c functions. Ultimately, size_t is being imported as a UInt32 rather than a UInt. Looking at MappedTypes, it seems like it should be mapped as Int.

@gribozavr
Copy link
Contributor

Ultimately, size_t is being imported as a UInt32 rather than a UInt.

Which is an issue that should be fixed on the compiler side. It will cause a lot of other API inconsistencies.

phausler added a commit that referenced this pull request Feb 25, 2016
Fixes for TestNSURL.swift on 32-bit (NFC)
@phausler phausler merged commit f080a00 into swiftlang:master Feb 25, 2016
atrick pushed a commit to atrick/swift-corelibs-foundation that referenced this pull request Jan 12, 2021
[test] Workaround an issue with createDirectory on Linux
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