One char->Py_UNICODE change missed in r56777 - according to Adam Hupp this is the change to make...
This commit is contained in:
parent
4626458cc5
commit
e3b10f4c4c
|
@ -169,14 +169,14 @@ get_string(PyObject *str)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
get_nullchar_as_None(char c)
|
||||
get_nullchar_as_None(Py_UNICODE c)
|
||||
{
|
||||
if (c == '\0') {
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
else
|
||||
return PyUnicode_DecodeASCII((char*)&c, 1, NULL);
|
||||
return PyUnicode_FromUnicode((Py_UNICODE *)&c, 1);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
|
Loading…
Reference in New Issue