From 5f43a52fa80243e812f42bae98485c002ce7c456 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Tue, 18 Feb 2020 16:09:08 -0500 Subject: Seemily unimportant change to the initiation of the neighbors set that fixes segfaults on aarch64. --- transformation.hpp | 3 +-- 1 file changed, 1 insertion(+), 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*> current() const override { return {s1Old, s2Old}; } std::set*> toConsider() const override { - std::set*> neighbors; + std::set*> neighbors = {NULL}; std::set*> current_neighbors_1 = M.dict.neighbors(s1Old->x); std::set*> current_neighbors_2 = M.dict.neighbors(s2Old->x); std::set*> 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; } -- cgit v1.2.3-70-g09d2