diff options
| author | Hartmut Holzgraefe <hholzgra@php.net> | 2006-01-12 15:37:56 +0000 |
|---|---|---|
| committer | Hartmut Holzgraefe <hholzgra@php.net> | 2006-01-12 15:37:56 +0000 |
| commit | f1ffdfdbb333506416c9d0a4abf8142852f438f1 (patch) | |
| tree | ac600ca71ce29c57ba9bd429b185f10febd308e2 /ext/standard/levenshtein.c | |
| parent | d357c67915f46fd54dca906c73784f83cd17e58b (diff) | |
| download | php-git-f1ffdfdbb333506416c9d0a4abf8142852f438f1.tar.gz | |
typo fix
Diffstat (limited to 'ext/standard/levenshtein.c')
| -rw-r--r-- | ext/standard/levenshtein.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/levenshtein.c b/ext/standard/levenshtein.c index 94e6af05d6..1c2491ee19 100644 --- a/ext/standard/levenshtein.c +++ b/ext/standard/levenshtein.c @@ -23,7 +23,7 @@ #include <ctype.h> #include "php_string.h" -#define LEVENSHTEIN_MAX_LENTH 255 +#define LEVENSHTEIN_MAX_LENGTH 255 /* {{{ reference_levdist * reference implementation, only optimized for memory usage, not speed */ @@ -40,7 +40,7 @@ static int reference_levdist(void *s1, int32_t l1, void *s2, int32_t l2, zend_uc if (cp1 == 0) return cp2*cost_ins; if (cp2 == 0) return cp1*cost_del; - if ((cp1>LEVENSHTEIN_MAX_LENTH)||(cp2>LEVENSHTEIN_MAX_LENTH)) { + if ((cp1>LEVENSHTEIN_MAX_LENGTH)||(cp2>LEVENSHTEIN_MAX_LENGTH)) { return -1; } @@ -49,7 +49,7 @@ static int reference_levdist(void *s1, int32_t l1, void *s2, int32_t l2, zend_uc } else { if (l1 == 0) return l2*cost_ins; if (l2 == 0) return l1*cost_del; - if ((l1>LEVENSHTEIN_MAX_LENTH)||(l2>LEVENSHTEIN_MAX_LENTH)) { + if ((l1>LEVENSHTEIN_MAX_LENGTH)||(l2>LEVENSHTEIN_MAX_LENGTH)) { return -1; } |
