chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.db-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
routesearch: actually print number of routes requested, not one less
[ypp-sc-tools.db-test.git]
/
yarrg
/
rssearch.c
diff --git
a/yarrg/rssearch.c
b/yarrg/rssearch.c
index 23d2ece5eb8541ccc2616fd8ae749d0966759b3b..881d5de4ba7d0550cd9533056d7bf863291b64d7 100644
(file)
--- a/
yarrg/rssearch.c
+++ b/
yarrg/rssearch.c
@@
-162,7
+162,7
@@
static double process_route(int nports, int totaldist,
found:
for (;;) {
pos++;
- if (pos >= nscores
-1
) break; /* new top */
+ if (pos >= nscores) break; /* new top */
if (scores[pos].value >= value[ap]) break; /* found spot */
if (pos>0)
scores[pos-1]= scores[pos];