mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
fixed the warning (-Warray-bounds)
This commit is contained in:
parent
43fed4adac
commit
d07662d11c
@ -178,7 +178,7 @@ template<class T> struct connection_table {
|
||||
*/
|
||||
|
||||
template<class T> 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;
|
||||
|
Loading…
Reference in New Issue
Block a user