diff options
Diffstat (limited to 'ext/standard/levenshtein.c')
-rw-r--r-- | ext/standard/levenshtein.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/levenshtein.c b/ext/standard/levenshtein.c index 7a0fe01730..7ce5f79764 100644 --- a/ext/standard/levenshtein.c +++ b/ext/standard/levenshtein.c @@ -119,9 +119,9 @@ PHP_FUNCTION(levenshtein) distance = reference_levdist((*str1)->value.str.val, (*str1)->value.str.len, (*str2)->value.str.val, (*str2)->value.str.len, - (*cost_ins)->value.lval, - (*cost_rep)->value.lval, - (*cost_del)->value.lval + Z_LVAL_PP(cost_ins), + Z_LVAL_PP(cost_rep), + Z_LVAL_PP(cost_del) ); break; @@ -136,7 +136,7 @@ PHP_FUNCTION(levenshtein) distance = custom_levdist((*str1)->value.str.val , (*str2)->value.str.val - , (*callback_name)->value.str.val + , Z_STRVAL_PP(callback_name) ); break; |