diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2019-06-01 20:02:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-01 20:02:08 (GMT) |
commit | 938d9a0167f7fa4ed109484d269902021d274c64 (patch) | |
tree | c6660d3986f6e33d94cb1c153f5faf34dd04e7a8 /Python | |
parent | faa2948654d15a859bc4317e00730ff213295764 (diff) | |
download | cpython-938d9a0167f7fa4ed109484d269902021d274c64.zip cpython-938d9a0167f7fa4ed109484d269902021d274c64.tar.gz cpython-938d9a0167f7fa4ed109484d269902021d274c64.tar.bz2 |
Fix compiler warnings in the pystrehex module (GH-13730)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pystrhex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pystrhex.c b/Python/pystrhex.c index 695a3c3..5dc7c96 100644 --- a/Python/pystrhex.c +++ b/Python/pystrhex.c @@ -11,11 +11,11 @@ static PyObject *_Py_strhex_impl(const char* argbuf, const Py_ssize_t arglen, PyObject *retval; Py_UCS1* retbuf; Py_ssize_t i, j, resultlen = 0; - Py_UCS1 sep_char; + Py_UCS1 sep_char = 0; unsigned int abs_bytes_per_sep; if (sep) { - Py_ssize_t seplen = PyObject_Length(sep); + Py_ssize_t seplen = PyObject_Length((PyObject*)sep); if (seplen < 0) { return NULL; } |