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); }