mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix another compiler warning about an unused variable
This commit is contained in:
parent
664e620fab
commit
f70c8e3d6b
@ -289,9 +289,9 @@ icu_Collator_find_all(icu_Collator *self, PyObject *args) {
|
|||||||
search = usearch_openFromCollator(a, asz, b, bsz, self->collator, whole_words ? self->word_iterator : NULL, &status);
|
search = usearch_openFromCollator(a, asz, b, bsz, self->collator, whole_words ? self->word_iterator : NULL, &status);
|
||||||
if (search && U_SUCCESS(status)) {
|
if (search && U_SUCCESS(status)) {
|
||||||
pos = usearch_first(search, &status);
|
pos = usearch_first(search, &status);
|
||||||
int32_t codepoint_count = 0, pos_for_codepoint_count = 0;
|
int32_t pos_for_codepoint_count = 0;
|
||||||
while (pos != USEARCH_DONE) {
|
while (pos != USEARCH_DONE) {
|
||||||
codepoint_count += u_countChar32(b + pos_for_codepoint_count, pos - pos_for_codepoint_count);
|
u_countChar32(b + pos_for_codepoint_count, pos - pos_for_codepoint_count);
|
||||||
pos_for_codepoint_count = pos;
|
pos_for_codepoint_count = pos;
|
||||||
length = usearch_getMatchedLength(search);
|
length = usearch_getMatchedLength(search);
|
||||||
length = u_countChar32(b + pos, length);
|
length = u_countChar32(b + pos, length);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user