Skip to content
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

Parity: NSCoding stragglers: NSCountedSet #2493

Merged
merged 1 commit into from
Aug 28, 2019
Merged

Parity: NSCoding stragglers: NSCountedSet #2493

merged 1 commit into from
Aug 28, 2019

Conversation

millenomi
Copy link
Contributor

@millenomi millenomi commented Aug 28, 2019

  • On Darwin, NSCountedSet with items all with count 1 and a NSSet with those same items are equal; make sure this can happen safely in s-c-f too. (This changes the implementation slightly — we now encode counts in _table only if they are higher than 1. Edited to add: Those counts are encoded as one less than the actual count — an object with a count of 1 has no entry in _table, and an object with a count of 2 has an entry in _table equal to 1.)

  • Implement coding and add fixture tests.

 - On Darwin, NSCountedSet with items all with count 1 and a NSSet with those same items are equal; make sure this can happen safely in s-c-f too. (This changes the implementation slightly — we now encode counts in _table only if they are higher than 1.)

 - Implement coding and add fixture tests.
@millenomi
Copy link
Contributor Author

@swift-ci please test and merge

@swift-ci swift-ci merged commit 4030f27 into swiftlang:master Aug 28, 2019
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