Skip to content

Commit 938d9a0

Browse files
authored
Fix compiler warnings in the pystrehex module (GH-13730)
1 parent faa2948 commit 938d9a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/pystrhex.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ static PyObject *_Py_strhex_impl(const char* argbuf, const Py_ssize_t arglen,
1111
PyObject *retval;
1212
Py_UCS1* retbuf;
1313
Py_ssize_t i, j, resultlen = 0;
14-
Py_UCS1 sep_char;
14+
Py_UCS1 sep_char = 0;
1515
unsigned int abs_bytes_per_sep;
1616

1717
if (sep) {
18-
Py_ssize_t seplen = PyObject_Length(sep);
18+
Py_ssize_t seplen = PyObject_Length((PyObject*)sep);
1919
if (seplen < 0) {
2020
return NULL;
2121
}

0 commit comments

Comments
 (0)