X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftt.h;h=c37b9d3ff6f74c96bbfe3853d8747f0f72804933;hp=94ee78e70f233f9126bee035e1213403551bee8f;hb=6442981cb649d2008275f12564aeeb69e73f41f5;hpb=d4b92ae9a094e1b388e3d70789a0db9a9c69cbdf diff --git a/src/tt.h b/src/tt.h index 94ee78e7..c37b9d3f 100644 --- a/src/tt.h +++ b/src/tt.h @@ -46,7 +46,7 @@ class SimpleHash { public: SimpleHash() { - entries = new Entry[HashSize]; + entries = new (std::nothrow) Entry[HashSize]; if (!entries) { std::cerr << "Failed to allocate " << HashSize * sizeof(Entry)