Skip to content

Commit bf2239d

Browse files
committed
Inline helpers
1 parent 4bb387f commit bf2239d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

mypyc/lib-rt/str_ops.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,10 +678,10 @@ bool CPyStr_IsAlnum(PyObject *str) {
678678
return true;
679679
}
680680

681-
static int CPy_ASCII_Lower(unsigned char c) { return Py_TOLOWER(c); }
682-
static int CPy_ASCII_Upper(unsigned char c) { return Py_TOUPPER(c); }
681+
static inline int CPy_ASCII_Lower(unsigned char c) { return Py_TOLOWER(c); }
682+
static inline int CPy_ASCII_Upper(unsigned char c) { return Py_TOUPPER(c); }
683683

684-
static PyObject *CPyStr_ChangeCase(PyObject *self,
684+
static inline PyObject *CPyStr_ChangeCase(PyObject *self,
685685
int (*ascii_func)(unsigned char),
686686
#if CPY_3_13_FEATURES
687687
PyObject *method_name

0 commit comments

Comments
 (0)