Skip to content

Conversation

@Baunsgaard
Copy link
Contributor

@Baunsgaard Baunsgaard commented Oct 16, 2023

This commit fixes the bug by solidifying the isType detection to not allow casting to int on integers above Integer.MAX_VALUE and not cast to long on above Long.MAX_VALUE. Also added is a few tests to verify the behavior in some edge cases.

This commit fixes the bug by solidify the isType detection
to not allow casting to int on integers above Integer.MAX_VALUE
and not cast to long on above Long.MAX_VALUE.

Also added is a few tests to verify the behavior in some edge cases.
@mboehm7
Copy link
Contributor

mboehm7 commented Oct 16, 2023

Looks good to me and thanks for adding the test such that these issues don't happen again.

@mboehm7
Copy link
Contributor

mboehm7 commented Oct 16, 2023

Feel free to merge it in yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants