Skip to content

Commit

Permalink
Fix compiler warnings in the pystrehex module (pythonGH-13730)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogsal authored and DinoV committed Jan 14, 2020
1 parent 07c118a commit 9db9e99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Python/pystrhex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9db9e99

Please sign in to comment.