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

Robert Haas <rhaas@postgresql.org>

Commit: da07641481bcad3d21f6d7cee0690a1c75f89c54
Author: Robert Haas <rhaas@postgresql.org>
Date: 2009-12-10T01:54:17Z
Releases: 9.0.0
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