]> git.sesse.net Git - stockfish/blobdiff - src/tt.h
Fix an hang on 32 bits while allocating big TT table
[stockfish] / src / tt.h
index 94ee78e70f233f9126bee035e1213403551bee8f..c37b9d3ff6f74c96bbfe3853d8747f0f72804933 100644 (file)
--- 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)