mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08:00
Fully qualify memset and memcpy
And other trivial touches. Ispired by Lucas's DiscoCheck No functional change.
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user