Skip to content

[CSBindings] Couple of small PotentialBindings cleanups #20542

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
Nov 14, 2018

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Nov 13, 2018

  • Use int instead of unsigned int to represent # of non-defaultable bindings.
    Because the formula is -(Total - Defaultable) which could only be 0 or negative.

  • Increase number of defaultable bindings iff the binding is accepted.

- Use `int` instead of `unsigned int` to represent # of non-defaultable bindings.
  Because the formula is `-(Total - Defaultable)` which could only be `0` or negative.

- Increase number of defaultable bindings iff the binding is accepted.
@xedin xedin requested a review from rudkx November 13, 2018 20:03
@xedin
Copy link
Contributor Author

xedin commented Nov 13, 2018

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Nov 13, 2018

@swift-ci please smoke test Linux platform

@xedin
Copy link
Contributor Author

xedin commented Nov 13, 2018

@swift-ci please test source compatibility

@xedin
Copy link
Contributor Author

xedin commented Nov 14, 2018

@rudkx Only failures are in Tagged which is unrelated to these changes.

@xedin xedin merged commit caa01ea into swiftlang:master Nov 14, 2018
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