From 93021d5b285d431898a49c4d6aaae19e89573766 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Tue, 14 May 2024 15:28:22 -0700 Subject: [PATCH] Fix bug in move --- Facade.h | 2 +- VersionedMap.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Facade.h b/Facade.h index f1532de..c71d121 100644 --- a/Facade.h +++ b/Facade.h @@ -2,9 +2,9 @@ #include "VersionedMap.h" -#include #include #include +#include using String = std::basic_string; diff --git a/VersionedMap.cpp b/VersionedMap.cpp index 570ec6f..1e3bfd8 100644 --- a/VersionedMap.cpp +++ b/VersionedMap.cpp @@ -583,7 +583,8 @@ struct __attribute__((__visibility__("hidden"))) VersionedMap::Impl { finger.push(c, !direction); } } else { - while (finger.searchPathSize() > 1 && finger.backDirection() == true) { + while (finger.searchPathSize() > 1 && + finger.backDirection() == direction) { finger.pop(); } finger.pop();