X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsearch.h;h=ecc9a39e459cd63a6003359f3b6554406a098222;hb=917944e9c5324cc9659e630570e1852270b22bd4;hp=bd21023747f53d2e480003933566c86fbd844bf8;hpb=0e1ad3ad33c65be8cfb2702b3df5500ef9d2f87f;p=stockfish diff --git a/src/search.h b/src/search.h index bd210237..ecc9a39e 100644 --- a/src/search.h +++ b/src/search.h @@ -17,7 +17,7 @@ along with this program. If not, see . */ -#if !defined(SEARCH_H_INCLUDED) +#ifndef SEARCH_H_INCLUDED #define SEARCH_H_INCLUDED #include @@ -45,7 +45,6 @@ struct Stack { Move killers[2]; Depth reduction; Value staticEval; - Value evalMargin; int skipNullMove; }; @@ -78,7 +77,7 @@ struct RootMove { struct LimitsType { - LimitsType() { memset(this, 0, sizeof(LimitsType)); } + LimitsType() { std::memset(this, 0, sizeof(LimitsType)); } bool use_time_management() const { return !(mate | movetime | depth | nodes | infinite); } int time[COLOR_NB], inc[COLOR_NB], movestogo, depth, nodes, movetime, mate, infinite, ponder; @@ -108,4 +107,4 @@ extern void think(); } // namespace Search -#endif // !defined(SEARCH_H_INCLUDED) +#endif // #ifndef SEARCH_H_INCLUDED