FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fallback exit code to 0 in case of overflow by arnavb · Pull Request #1745 · RustPython/RustPython · GitHub

Repository navigation

Fallback exit code to 0 in case of overflow - #1745

Merged
youknowone merged 1 commit into
RustPython:masterfrom
arnavb:fix-exit-code
Feb 5, 2020
Merged

youknowone merged 1 commit into
RustPython:masterfrom
arnavb:fix-exit-code

Conversation

arnavb commented Feb 4, 2020

Copy link
Copy Markdown
Contributor

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!

coolreader18 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks good, thanks for contributing!

youknowone merged commit 3960fb8 into RustPython:master Feb 5, 2020
arnavb deleted the fix-exit-code branch February 5, 2020 11:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL