Skip to content

Commit 57c5b99

Browse files
committed
Fix from feedback
1 parent 6f41f98 commit 57c5b99

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/intl/grapheme/grapheme_string.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include <unicode/ucol.h>
2727
#include <unicode/ustring.h>
2828
#include <unicode/ubrk.h>
29-
#include <unicode/usearch.h>
3029

3130
/* }}} */
3231

@@ -1015,7 +1014,7 @@ PHP_FUNCTION(grapheme_levenshtein)
10151014

10161015
unsigned char u_break_iterator_buffer1[U_BRK_SAFECLONE_BUFFERSIZE];
10171016
unsigned char u_break_iterator_buffer2[U_BRK_SAFECLONE_BUFFERSIZE];
1018-
bi1 = grapheme_get_break_iterator((void*)u_break_iterator_buffer1, &ustatus);
1017+
bi1 = grapheme_get_break_iterator(u_break_iterator_buffer1, &ustatus);
10191018
if (U_FAILURE(ustatus)) {
10201019
intl_error_set_code(NULL, ustatus);
10211020
intl_error_set_custom_msg(NULL, "Error on grapheme_get_break_iterator for argument #1 ($string1)", 0);
@@ -1100,7 +1099,6 @@ PHP_FUNCTION(grapheme_levenshtein)
11001099
}
11011100
if (ucol_strcoll(collator, ustring1 + current1, pos1 - current1, ustring2 + current2, pos2 - current2) == UCOL_EQUAL) {
11021101
c0 = p1[i2];
1103-
c0 = p1[i2];
11041102
} else {
11051103
c0 = p1[i2] + cost_rep;
11061104
}

0 commit comments

Comments
 (0)