changeset 342:def30555ac89

make error message reflect boundary condition when queryPoint >= numVectors-sequenceLength+1
author mas01mc
date Tue, 07 Oct 2008 18:41:38 +0000
parents a36e9cc666ce
children fdeb8db97678
files query.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/query.cpp	Sun Sep 21 09:33:57 2008 +0000
+++ b/query.cpp	Tue Oct 07 18:41:38 2008 +0000
@@ -309,7 +309,7 @@
 
   if(usingQueryPoint) {
     if( !(queryPoint < *nvp && queryPoint < *nvp - sequenceLength + 1) ) {
-      error("queryPoint > numVectors-sequenceLength+1 in query");
+      error("queryPoint >= numVectors-sequenceLength+1 in query");
     } else {
       VERB_LOG(1, "query point: %u\n", queryPoint);
       *vqp = *qp + queryPoint * dbH->dim;
@@ -416,7 +416,7 @@
 
   if(usingQueryPoint) {
     if( !(queryPoint < *nvp && queryPoint < *nvp - sequenceLength + 1) ) {
-      error("queryPoint > numVectors-sequenceLength+1 in query");
+      error("queryPoint >= numVectors-sequenceLength+1 in query");
     } else {
       VERB_LOG(1, "query point: %u\n", queryPoint);
       *vqp = *qp + queryPoint * dbH->dim;