@@ -623,7 +623,7 @@ nfd_nfkd(PyObject *self, PyObject *input, int k)
623
623
}
624
624
625
625
static int
626
- find_nfc_index (PyObject * self , struct reindex * nfc , Py_UCS4 code )
626
+ find_nfc_index (const struct reindex * nfc , Py_UCS4 code )
627
627
{
628
628
unsigned int index ;
629
629
for (index = 0 ; nfc [index ].start ; index ++ ) {
@@ -709,7 +709,7 @@ nfc_nfkc(PyObject *self, PyObject *input, int k)
709
709
}
710
710
711
711
/* code is still input[i] here */
712
- f = find_nfc_index (self , nfc_first , code );
712
+ f = find_nfc_index (nfc_first , code );
713
713
if (f == -1 ) {
714
714
output [o ++ ] = code ;
715
715
i ++ ;
@@ -732,7 +732,7 @@ nfc_nfkc(PyObject *self, PyObject *input, int k)
732
732
continue ;
733
733
}
734
734
}
735
- l = find_nfc_index (self , nfc_last , code1 );
735
+ l = find_nfc_index (nfc_last , code1 );
736
736
/* i1 cannot be combined with i. If i1
737
737
is a starter, we don't need to look further.
738
738
Otherwise, record the combining class. */
@@ -757,7 +757,7 @@ nfc_nfkc(PyObject *self, PyObject *input, int k)
757
757
assert (cskipped < 20 );
758
758
skipped [cskipped ++ ] = i1 ;
759
759
i1 ++ ;
760
- f = find_nfc_index (self , nfc_first , output [o ]);
760
+ f = find_nfc_index (nfc_first , output [o ]);
761
761
if (f == -1 )
762
762
break ;
763
763
}
0 commit comments