X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftt.h;h=3953d1c90dabfcdb462484575c36d0a9963c9717;hb=e8f9447b11efd80a01733175c5076db988c45aa9;hp=aee530b05485d6149ec3441e44db51cdcfbf88d7;hpb=203fdc9ac1b0ad5e5820b450a0cffdffb917e069;p=stockfish
diff --git a/src/tt.h b/src/tt.h
index aee530b0..3953d1c9 100644
--- a/src/tt.h
+++ b/src/tt.h
@@ -17,7 +17,7 @@
along with this program. If not, see .
*/
-#if !defined(TT_H_INCLUDED)
+#ifndef TT_H_INCLUDED
#define TT_H_INCLUDED
#include "misc.h"
@@ -78,7 +78,7 @@ class TranspositionTable {
public:
~TranspositionTable() { free(mem); }
- void new_search() { generation++; }
+ void new_search() { ++generation; }
const TTEntry* probe(const Key key) const;
TTEntry* first_entry(const Key key) const;
@@ -115,4 +115,4 @@ inline void TranspositionTable::refresh(const TTEntry* tte) const {
const_cast(tte)->set_generation(generation);
}
-#endif // !defined(TT_H_INCLUDED)
+#endif // #ifndef TT_H_INCLUDED