Skip to content

Commit 1753c64

Browse files
committed
Also fixed error for division
1 parent c249ec2 commit 1753c64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/mqt-core/operations/Expression.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ class Expression {
275275
throw std::runtime_error("Trying to divide expression by 0!");
276276
}
277277
std::for_each(terms.begin(), terms.end(), [&](auto& term) { term /= rhs; });
278-
constant /= U{rhs};
278+
constant = U{double{constant} / double{rhs}};
279279
return *this;
280280
}
281281

0 commit comments

Comments
 (0)