[poincare] Don't assert on the number of arguments of LCM

Change-Id: I345552f56267d9a94ad49f745c07bc48002483dc
This commit is contained in:
Romain Goyet
2017-05-03 16:59:35 +02:00
parent 9ac4b4dbe1
commit e32a5d248d

View File

@@ -19,7 +19,6 @@ Expression::Type LeastCommonMultiple::type() const {
Expression * LeastCommonMultiple::cloneWithDifferentOperands(Expression** newOperands,
int numberOfOperands, bool cloneOperands) const {
assert(numberOfOperands == 2);
assert(newOperands != nullptr);
LeastCommonMultiple * lcm = new LeastCommonMultiple();
lcm->setArgument(newOperands, numberOfOperands, cloneOperands);