forrestthewoods / lib_fts

single-file public domain libraries
661 stars 139 forks source link

Fix a minor terminating null check #8

Closed jorgenpt closed 7 years ago

jorgenpt commented 7 years ago

We were comparing patternIter != '\0', rather than *patternIter != '\0'. The former would always be true. In addition, I switched it to reuse the patternLetter rather than derefing patternIter twice more.

forrestthewoods commented 7 years ago

Are you actually using this code? How exciting!

jorgenpt commented 7 years ago

Ported it to C++/CLR to use in a C# data editor. Not sure this kind of fuzzy matching is what we need, so I might need to butcher it (or at least

tweak the weights).

Kind regards, Jørgen.