Skip to content

SWIFT-154: Int should encode as Int32 or Int64 as needed #91

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
Jul 10, 2018
Merged

SWIFT-154: Int should encode as Int32 or Int64 as needed #91

merged 1 commit into from
Jul 10, 2018

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Jul 9, 2018

@jmikola jmikola requested a review from kmahar July 9, 2018 19:15
Copy link
Contributor

@kmahar kmahar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. could you please update the doc comment just above this extension to clarify the new behavior?

/// While the bitwidth of Int is machine-dependent, we assume for simplicity
/// that it is always 32 bits. Use `Int64` if 64 bits are needed.
/// An extension of `Int` to represent the BSON Int32 or Int64 type.
/// The `Int` will be encoded as an Int32 if possible, or an Int64 if necessary.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please update the doc comment just above this extension to clarify the new behavior?

Done.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jmikola jmikola merged commit 28db28b into mongodb:master Jul 10, 2018
@jmikola jmikola deleted the swift-154 branch July 10, 2018 12:29
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