-
Notifications
You must be signed in to change notification settings - Fork 51
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
Panic on division by zero #62
Conversation
Codecov Report
@@ Coverage Diff @@
## master #62 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 3 3
Lines 669 673 +4
=========================================
+ Hits 669 673 +4 |
Well... are you sure we want this then? I mean, we'll have to add the corresponding check in the evm-layer, and the |
I'm not sure, but wanted to know how big the change is. But I don't believe panic prevents inlining. |
master to panic
panic to nopanic
master to nopanic
|
Alternative idea: have |
Started doing this in #64, but that's a lot of changes. There are I think I would leave it as is. |
I'm fine with leaving it as is |
In this PR we are getting panics for all 6 division methods (if not that's a bug). But by "as is" I mean dropping this PR and go with what we currently have in master. |
Sounds very much like something we don't want in the evm, so I think we should leave it as is on master, and not add complexity just for the sake of potential other users of the library |
Not compatible with EVM but useful if someone wants to use this library for other purposes.