X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=d81e7e80a33f3c391c9bf530996a3a61c2d40e71;hp=ec9f9bb97f3a9a688bc6cd5d077579c9ffe3ea07;hb=0e800c527a9773ab986e185dae291695a4ca83ee;hpb=13bd0cff0d1f7977ee68cf995d2b5f84159974ba diff --git a/src/types.h b/src/types.h index ec9f9bb9..d81e7e80 100644 --- a/src/types.h +++ b/src/types.h @@ -137,6 +137,9 @@ inline void operator-- (T& d, int) { d = T(int(d) - 1); } template inline void operator+= (T& d1, const T d2) { d1 = d1 + d2; } +template +inline void operator-= (T& d1, const T d2) { d1 = d1 - d2; } + template inline void operator*= (T& d, int i) { d = T(int(d) * i); }