X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.cpp;h=7a4d73c9cb6b2adbbbd8204777327d5311201375;hp=e0533bc9cc286280c61432c455adf41ee3695ebe;hb=ed72a1e9ba37a9fa2674da8f46bb0597a1721c2d;hpb=112607bf490ccdeaf3446996c6c4f09a11778c7b diff --git a/src/bitboard.cpp b/src/bitboard.cpp index e0533bc9..7a4d73c9 100644 --- a/src/bitboard.cpp +++ b/src/bitboard.cpp @@ -18,7 +18,6 @@ */ #include -#include // For std::memset #include "bitboard.h" #include "bitcount.h" @@ -247,9 +246,7 @@ namespace { { 728, 10316, 55013, 32803, 12281, 15100, 16645, 255 } }; Bitboard occupancy[4096], reference[4096], edges, b; - int age[4096], current = 0, i, size; - - std::memset(age, 0, sizeof(age)); + int age[4096] = {0}, current = 0, i, size; // attacks[s] is a pointer to the beginning of the attacks table for square 's' attacks[SQ_A1] = table;