Skip to content

Commit

Permalink
fix mathematical error on div
Browse files Browse the repository at this point in the history
  • Loading branch information
vanilla-extracts committed May 15, 2024
1 parent c5b038b commit 769d074
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions/divide.rs
Original file line number Diff line number Diff line change
Expand Up @@ -762,9 +762,9 @@ pub fn divide(
first
}

(Parameters::Null, Parameters::Div(s1, s2)) => divide(*s1.clone(), *s2.clone(), ram),
(Parameters::Null, Parameters::Div(s1, s2)) => divide(*s2.clone(), *s1.clone(), ram),

(Parameters::Div(s1, s2), Parameters::Null) => divide(*s1.clone(), *s2.clone(), ram),
(Parameters::Div(s1, s2), Parameters::Null) => divide(*s2.clone(), *s1.clone(), ram),
_ => Parameters::Identifier(
"@Those two values are incompatible with the / operator".to_string(),
),
Expand Down

0 comments on commit 769d074

Please sign in to comment.