Fix levenshtein with costs. The previous code multiplied by the cost in only

Robert Haas <rhaas@postgresql.org>

Commit: 743ffa59b915328f372cb75c1000b69aeb24f5c1
Author: Robert Haas <rhaas@postgresql.org>
Date: 2009-12-10T01:54:21Z
Releases: 8.4.2
Fix levenshtein with costs.  The previous code multiplied by the cost in only
3 of the 7 relevant locations.

Marcin Mank, slightly adjusted by me.

Files

PathChange+/−
contrib/fuzzystrmatch/fuzzystrmatch.c modified +7 −7