From 6961e4066d743be6c5e54a2d5fc39aa526c78ac7 Mon Sep 17 00:00:00 2001 From: dimitr Date: Sun, 7 Jul 2013 07:50:44 +0000 Subject: [PATCH] Fixed the assertion, thanks to Adriano. --- src/jrd/Optimizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jrd/Optimizer.cpp b/src/jrd/Optimizer.cpp index 39edd8c266..1d77ebec6f 100644 --- a/src/jrd/Optimizer.cpp +++ b/src/jrd/Optimizer.cpp @@ -665,7 +665,7 @@ IndexTableScan* OptimizerRetrieval::getNavigation() if (navigationCandidate < 0) return NULL; - fb_assert(navigationCandidate <= indexScratches.getCount()); + fb_assert(navigationCandidate < indexScratches.getCount()); IndexScratch* const indexScratch = &indexScratches[navigationCandidate]; // Looks like we can do a navigational walk. Flag that