Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit087bd17

Browse files
committed
Minor logic fix for new levenshtein implementation.
Alexander Korotkov
1 parent7c5d0ae commit087bd17

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

‎contrib/fuzzystrmatch/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ top_builddir = ../..
1616
include$(top_builddir)/src/Makefile.global
1717
include$(top_srcdir)/contrib/contrib-global.mk
1818
endif
19+
20+
# levenshtein.c is #included by fuzzystrmatch.c
21+
fuzzystrmatch.o: fuzzystrmatch.c levenshtein.c

‎contrib/fuzzystrmatch/levenshtein.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ levenshtein_internal(text *s, text *t,
377377
prev[start_column]=max_d+1;
378378
curr[start_column]=max_d+1;
379379
if (start_column!=0)
380-
s_data+=s_char_len!=NULL ?s_char_len[i-1] :1;
380+
s_data+=(s_char_len!=NULL) ?s_char_len[start_column-1] :1;
381381
start_column++;
382382
}
383383

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp