Fully qualify memset and memcpy

And other trivial touches.

Ispired by Lucas's DiscoCheck

No functional change.
This commit is contained in:
Marco Costalba
2013-07-13 17:21:24 +02:00
parent 6960f41e03
commit 4ede49cd85
10 changed files with 20 additions and 22 deletions

View 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) {