@@ -163,7 +163,7 @@ void Position::init() {
163163
164164Position& Position::operator =(const Position& pos) {
165165
166- memcpy (this , &pos, sizeof (Position));
166+ std:: memcpy (this , &pos, sizeof (Position));
167167 startState = *st;
168168 st = &startState;
169169 nodes = 0 ;
@@ -722,7 +722,7 @@ void Position::do_move(Move m, StateInfo& newSt, const CheckInfo& ci, bool moveI
722722 // Copy some fields of old state to our new StateInfo object except the ones
723723 // which are going to be recalculated from scratch anyway, then switch our state
724724 // pointer to point to the new, ready to be updated, state.
725- memcpy (&newSt, st, StateCopySize64 * sizeof (uint64_t ));
725+ std:: memcpy (&newSt, st, StateCopySize64 * sizeof (uint64_t ));
726726
727727 newSt.previous = st;
728728 st = &newSt;
@@ -1089,7 +1089,7 @@ void Position::do_null_move(StateInfo& newSt) {
10891089
10901090 assert (!checkers ());
10911091
1092- memcpy (&newSt, st, sizeof (StateInfo)); // Fully copy here
1092+ std:: memcpy (&newSt, st, sizeof (StateInfo)); // Fully copy here
10931093
10941094 newSt.previous = st;
10951095 st = &newSt;
@@ -1239,7 +1239,7 @@ int Position::see(Move m, int asymmThreshold) const {
12391239
12401240void Position::clear () {
12411241
1242- memset (this , 0 , sizeof (Position));
1242+ std:: memset (this , 0 , sizeof (Position));
12431243 startState.epSquare = SQ_NONE;
12441244 st = &startState;
12451245
0 commit comments