diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2014-08-16 21:07:50 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2014-08-16 21:08:04 -0700 |
commit | 2ef572f7cc3e2252e372dc2342507bde0454acf1 (patch) | |
tree | ecffe6d2f9f61c393b29413a11633c1ea51670b5 /match.c | |
parent | 41c8d3f8215841269ebe52d13c660d2093d37072 (diff) |
Really long candidates should return SCORE_MIN
Diffstat (limited to 'match.c')
-rw-r--r-- | match.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |