From a70a9dc663f1729afa10c90a3aa439d5b7e0e07a Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 16 May 2024 21:06:28 +0200 Subject: [PATCH] fixed a bug causing not compiling in C++20 --- locations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locations.cpp b/locations.cpp index f3b88a93..6f04fe09 100644 --- a/locations.cpp +++ b/locations.cpp @@ -213,7 +213,7 @@ template struct walker { int spin; /** \brief are we mirrored */ bool mirrored; - walker (T *at = NULL, int s = 0, bool m = false) : at(at), spin(s), mirrored(m) { if(at) s = at->c.fix(s); } + walker(T *at = NULL, int s = 0, bool m = false) : at(at), spin(s), mirrored(m) { if(at) s = at->c.fix(s); } /** \brief spin by i to the left (or right, when mirrored */ walker& operator += (int i) { spin = at->c.fix(spin+(mirrored?-i:i));