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

Fix SWIG wrappers for C# #4935

Merged
merged 1 commit into from
Jan 23, 2022
Merged

Conversation

k-ujihara
Copy link
Contributor

What does this implement/fix? Explain your changes.

std::numeric_limits<std::int32_t>::max() is not handled properly by SWIG for C#. This PR fixes to use an literal integer.

Any other comments?

Because this enum is uint32, general formula is not needed. Another expression like INT_MAX also does not work.

Copy link
Member

@greglandrum greglandrum left a comment

Choose a reason for hiding this comment

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

LGTM

@greglandrum greglandrum added this to the 2021_09_5 milestone Jan 23, 2022
@greglandrum greglandrum changed the title Fix to work for C# Fix SWIG wrappers for C# Jan 23, 2022
@greglandrum greglandrum merged commit cdc8e4a into rdkit:master Jan 23, 2022
@greglandrum
Copy link
Member

Thanks for the contribution @kazuyaujihara!

@k-ujihara k-ujihara deleted the patch/cxsmilesfield branch January 23, 2022 09:22
greglandrum pushed a commit that referenced this pull request Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants