Skip to content

[NSFileManager] Cast file types as Int32 #656

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

Conversation

modocache
Copy link
Contributor

On macOS, DT_DIR is imported as an Int. Int and Int32 cannot be compared via ==, so on macOS the comparison results in a build failure. Cast the variables to Int32 to resolve.


This fixes a Foundation build failure on XCTest's macOS CI. Unblocks swiftlang/swift-corelibs-xctest#172 and swiftlang/swift-corelibs-xctest#174.

On macOS, `DT_DIR` is imported as an `Int`. `Int` and `Int32` cannot be
compared via `==`, so on macOS the comparison results in a build
failure. Cast the variables to `Int32` to resolve.
@modocache
Copy link
Contributor Author

@swift-ci please test

@phausler
Copy link
Contributor

looks good to me

@parkera
Copy link
Contributor

parkera commented Sep 26, 2016

Thanks @modocache!

@modocache modocache deleted the fix-xctest-ci-faiure-nsfilemanager-int-types branch September 26, 2016 18:43
pushkarnk pushed a commit to pushkarnk/swift-corelibs-foundation that referenced this pull request Sep 29, 2016
On macOS, `DT_DIR` is imported as an `Int`. `Int` and `Int32` cannot be
compared via `==`, so on macOS the comparison results in a build
failure. Cast the variables to `Int32` to resolve.
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.

4 participants