Update various comments

Spotted by Alain Savard, Joost VandeVondele, Ronald de Man, Fabian Fichter, Chris Cain, xoto10

No functional change
This commit is contained in:
Stéphane Nicolet
2018-04-29 06:48:18 +02:00
parent 45072612d4
commit 11967e89cd
6 changed files with 15 additions and 11 deletions
+2 -2
View File
@@ -47,8 +47,8 @@ public:
operator TT() const { return entry; }
void operator<<(int bonus) {
assert(abs(bonus) <= D); // Ensure range is [-D, D]
assert(D < std::numeric_limits<T>::max()); // Ensure we don't overflow
assert(abs(bonus) <= D); // Ensure range is [-D, D]
static_assert(D <= std::numeric_limits<T>::max(), "D overflows T");
entry += bonus - entry * abs(bonus) / D;