From d07662d11c97c7574641466c621b8bf51ff76510 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 4 Jul 2021 09:53:29 +0200 Subject: [PATCH] fixed the warning (-Warray-bounds) --- locations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locations.cpp b/locations.cpp index 39adfd74..16d3673e 100644 --- a/locations.cpp +++ b/locations.cpp @@ -178,7 +178,7 @@ template struct connection_table { */ template T* tailored_alloc(int degree) { - const T* sample = (T*) °ree; + const T* sample = nullptr; T* result; #ifndef NO_TAILORED_ALLOC int b = (char*)&sample->c.move_table[degree] + degree - (char*) sample;