summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hawthorn <john@freerunningtechnologies.com>2014-08-01 19:34:41 -0700
committerJohn Hawthorn <john@freerunningtechnologies.com>2014-08-06 11:20:04 -0700
commit38e22da4447114d2a286637ff4011e1719ae37e1 (patch)
tree48fd3da00d1a0ccccd340af8dfa2c1c01420a213
parent175ffa6dc4f6ddad71ca1ddf7dc9a9007c4c6348 (diff)
No need to scale score in 0..1
Change-Id: Iea655e766abdaec8e7f3e2c3aa5d23274636cfb9
-rw-r--r--match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/match.c b/match.c
index ac35711..427cd6f 100644
--- a/match.c
+++ b/match.c
@@ -155,7 +155,7 @@ double calculate_score(const char *needle, const char *haystack, size_t *positio
}
}
- return (float)(M[n-1][m-1]) / (float)(n * 2 + 1);
+ return M[n-1][m-1];
}
double match_positions(const char *needle, const char *haystack, size_t *positions){