Skip to content

Conversation

@arnavb
Copy link
Contributor

@arnavb arnavb commented Feb 4, 2020

Fixes #1742

This PR changes the exit code to 0 if it overflows by replacing an unwrap() call with unwrap_or(0). Let me know what you think @coolreader18!

Copy link
Member

@coolreader18 coolreader18 left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for contributing!

@youknowone youknowone merged commit 3960fb8 into RustPython:master Feb 5, 2020
@arnavb arnavb deleted the fix-exit-code branch February 5, 2020 11:05
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.

exit(), panic if code >= 2**31

3 participants