diff --git a/FixMath2.h b/FixMath2.h index a0b951929..2cb24b4a5 100644 --- a/FixMath2.h +++ b/FixMath2.h @@ -35,11 +35,11 @@ class UFixMath2 // Constructor from another fixed type template - UFixMath2(UFixMath2<_NI,_NF> uf) {internal_value = SHIFTR((internal_type) uf.getInt(),(_NF-NF));} + UFixMath2(const UFixMath2<_NI,_NF>& uf) {internal_value = SHIFTR((internal_type) uf.getInt(),(_NF-NF));} // Multiplication overload template - internal_type operator* (const UFixMath2<_NI,_NF> op) + internal_type operator* (const UFixMath2<_NI,_NF>& op) { byte sub = (NF+_NF)>>1; Serial.println(sub);