summaryrefslogtreecommitdiff
path: root/match.c
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2014-08-16 21:07:50 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2014-08-16 21:08:04 -0700
commit2ef572f7cc3e2252e372dc2342507bde0454acf1 (patch)
treeecffe6d2f9f61c393b29413a11633c1ea51670b5 /match.c
parent41c8d3f8215841269ebe52d13c660d2093d37072 (diff)
Really long candidates should return SCORE_MIN
Diffstat (limited to 'match.c')
-rw-r--r--match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/match.c b/match.c
index 427cd6f..4ce6ddb 100644
--- a/match.c
+++ b/match.c
@@ -52,7 +52,7 @@ double calculate_score(const char *needle, const char *haystack, size_t *positio
* If it is a valid match it will still be returned, it will
* just be ranked below any reasonably sized candidates
*/
- return 0;
+ return SCORE_MIN;
}
score_t match_bonus[m];