]> git.sesse.net Git - stockfish/blobdiff - src/movepick.h
Fully qualify memset and memcpy
[stockfish] / src / movepick.h
index 57fe1c0ec304a76fd2542e97876c811eac92b6d2..37027ace23153d1dff36b88446df58d5b4be495d 100644 (file)
@@ -21,7 +21,7 @@
 #define MOVEPICK_H_INCLUDED
 
 #include <algorithm> // For std::max
-#include <cstring>   // For memset
+#include <cstring>   // For std::memset
 
 #include "movegen.h"
 #include "position.h"
@@ -43,7 +43,7 @@ struct Stats {
   static const Value Max = Value(2000);
 
   const T* operator[](Piece p) const { return table[p]; }
-  void clear() { memset(table, 0, sizeof(table)); }
+  void clear() { std::memset(table, 0, sizeof(table)); }
 
   void update(Piece p, Square to, Move m) {