diff src/Finder.h @ 86:f07b9b7f1ab6 refactors

Previous commit was a mistake: the ahead-of-time business is in Finder::getExpandDirection. In fact we were failing to swap advance directions in forward path when writing to the "other" finder. This does not actually affect the backward path calculation, but it does mean we can restore the sanity check.
author Chris Cannam
date Thu, 27 Nov 2014 12:08:16 +0000
parents a540b26db228
children c665173b3a33
line wrap: on
line diff
--- a/src/Finder.h	Thu Nov 27 11:27:17 2014 +0000
+++ b/src/Finder.h	Thu Nov 27 12:08:16 2014 +0000
@@ -68,7 +68,7 @@
 protected:
 #ifdef PERFORM_ERROR_CHECKS
     struct ErrorPosition {
-        enum Type { NoError = 0, WrongCost, NoAdvance };
+        enum Type { NoError = 0, WrongCost, WrongAdvance, NoAdvance };
         ErrorPosition() : type(NoError) { }
         Type type;
         int r;