From 2709aacb4e826a4f73ae24a1fa7a0872349f5f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 29 Oct 2018 15:49:20 +0100 Subject: [PATCH] [poincare] Fix Product constructor --- poincare/include/poincare/product.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poincare/include/poincare/product.h b/poincare/include/poincare/product.h index 292803e31..71d95b723 100644 --- a/poincare/include/poincare/product.h +++ b/poincare/include/poincare/product.h @@ -34,11 +34,11 @@ friend class ProductNode; public: Product(); Product(const ProductNode * n) : Expression(n) {} - Product(Expression operand0, Expression operand1, Expression operand2, Expression op) : Product() { + Product(Expression operand0, Expression operand1, Expression operand2, Expression operand3) : Product() { replaceChildAtIndexInPlace(0, operand0); replaceChildAtIndexInPlace(1, operand1); replaceChildAtIndexInPlace(2, operand2); - replaceChildAtIndexInPlace(3, operand2); + replaceChildAtIndexInPlace(3, operand3); } };