mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 13:44:15 +00:00
Fix incorrect division by zero check
This commit is contained in:
parent
aec9dad521
commit
392431631b
1 changed files with 1 additions and 1 deletions
|
@ -340,7 +340,7 @@ impl<'a, 'b> Div<&'b Number> for &'a Number {
|
|||
type Output = Option<Number>;
|
||||
|
||||
fn div(self, other: &Number) -> Self::Output {
|
||||
if self.0 == zero() {
|
||||
if other.0 == zero() {
|
||||
None
|
||||
} else {
|
||||
self * &other.invert()
|
||||
|
|
Loading…
Reference in a new issue