Skip to content

Commit

Permalink
Forgot a template
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcombriat committed Nov 17, 2023
1 parent 8681b64 commit 9a4d04c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion FixMath2.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,15 @@ class UFixMath2

template <byte NI, byte NF>
UFixMath2<NI, NF> operator*(int op, const UFixMath2<NI, NF>& uf) {return uf*op;}
UFixMath2<NI, NF> operator*(double op, const UFixMath2<NI, NF>& uf) {return uf*op;}

template <byte NI, byte NF>
UFixMath2<NI, NF> operator*(double op, const UFixMath2<NI, NF>& uf) {return uf*op;}
/*
template<typename T,byte NI, byte NF>
UFixMath2<NI,NF> operator* (const T op, const UFixMath2<NI, NF>& uf)
{
return UFixMath2<NI,NF>(uf.asRaw()*op,true);
}*/



Expand Down

0 comments on commit 9a4d04c

Please sign in to comment.