X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.cpp;h=f2e501c1d862091545806cbc07b148e82e2754b5;hp=a5f560baee15f29d1c250daaf18687a9ed173912;hb=1d4e7bbdf5a8b2e87daaa54eea52cbe01d699fdb;hpb=2f6927ac08887ff3b709cfe9228b27a85bdd1d88 diff --git a/src/material.cpp b/src/material.cpp index a5f560ba..f2e501c1 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -182,7 +182,7 @@ Phase MaterialInfoTable::game_phase(const Position& pos) { MaterialInfo* MaterialInfoTable::get_material_info(const Position& pos) { Key key = pos.get_material_key(); - int index = key & (size - 1); + unsigned index = unsigned(key & (size - 1)); MaterialInfo* mi = entries + index; // If mi->key matches the position's material hash key, it means that we