mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[poincare/multiplication] Correct cast
This commit is contained in:
committed by
Émilie Feral
parent
c181650922
commit
fa1235939b
@@ -676,8 +676,8 @@ Expression Multiplication::privateShallowReduce(ExpressionNode::ReductionContext
|
||||
}
|
||||
if (o.isNumber()) {
|
||||
if (childAtIndex(0).isNumber()) {
|
||||
Number o0 = childAtIndex(0).convert<Rational>();
|
||||
Number m = Number::Multiplication(o0, static_cast<Number &>(o));
|
||||
Expression o0 = childAtIndex(0);
|
||||
Number m = Number::Multiplication(static_cast<Number &>(o0), static_cast<Number &>(o));
|
||||
if ((IsInfinity(m, context) || m.isUndefined())
|
||||
&& !IsInfinity(o0, context) && !o0.isUndefined()
|
||||
&& !IsInfinity(o, context) && !o.isUndefined())
|
||||
|
||||
Reference in New Issue
Block a user