diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2020-02-18 16:09:08 -0500 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2020-02-18 16:09:08 -0500 |
commit | 5f43a52fa80243e812f42bae98485c002ce7c456 (patch) | |
tree | 35680b577f087035e0956898a954e41963aecf1e | |
parent | 47e3300bdb07b6bd195496beb0bb79aa271a29f0 (diff) | |
download | space_wolff-5f43a52fa80243e812f42bae98485c002ce7c456.tar.gz space_wolff-5f43a52fa80243e812f42bae98485c002ce7c456.tar.bz2 space_wolff-5f43a52fa80243e812f42bae98485c002ce7c456.zip |
Seemily unimportant change to the initiation of the neighbors set that fixes segfaults on aarch64.
-rw-r--r-- | transformation.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/transformation.hpp b/transformation.hpp index 0731ec9..33ac50f 100644 --- a/transformation.hpp +++ b/transformation.hpp @@ -85,7 +85,7 @@ public: std::set<Spin<U, D, S>*> current() const override { return {s1Old, s2Old}; } std::set<Spin<U, D, S>*> toConsider() const override { - std::set<Spin<U, D, S>*> neighbors; + std::set<Spin<U, D, S>*> neighbors = {NULL}; std::set<Spin<U, D, S>*> current_neighbors_1 = M.dict.neighbors(s1Old->x); std::set<Spin<U, D, S>*> current_neighbors_2 = M.dict.neighbors(s2Old->x); std::set<Spin<U, D, S>*> new_neighbors_1 = M.dict.neighbors(s1New.x); @@ -95,7 +95,6 @@ public: neighbors.insert(current_neighbors_2.begin(), current_neighbors_2.end()); neighbors.insert(new_neighbors_1.begin(), new_neighbors_1.end()); neighbors.insert(new_neighbors_2.begin(), new_neighbors_2.end()); - neighbors.insert(NULL); return neighbors; } |