From d13f1310a7b3a99a84e9a3f3ab38f0b08a29d657 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Thu, 26 Dec 2019 10:21:51 +0000 Subject: [PATCH] fix build --- src/math/dd/dd_pdd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/math/dd/dd_pdd.h b/src/math/dd/dd_pdd.h index 16070d07d..7aeff1c75 100644 --- a/src/math/dd/dd_pdd.h +++ b/src/math/dd/dd_pdd.h @@ -317,7 +317,7 @@ namespace dd { inline pdd operator*(int x, pdd const& b) { return b * rational(x); } inline pdd operator*(pdd const& b, int x) { return b * rational(x); } - inline pdd operator+(rational const& r, pdd& b) { return b + r; } + inline pdd operator+(rational const& r, const pdd& b) { return b + r; } inline pdd operator+(int x, pdd const& b) { return b + rational(x); } inline pdd operator+(pdd const& b, int x) { return b + rational(x); }