Commit e3b10f4c authored by Skip Montanaro's avatar Skip Montanaro

One char->Py_UNICODE change missed in r56777 - according to Adam Hupp this is the change to make...

parent 4626458c
...@@ -169,14 +169,14 @@ get_string(PyObject *str) ...@@ -169,14 +169,14 @@ get_string(PyObject *str)
} }
static PyObject * static PyObject *
get_nullchar_as_None(char c) get_nullchar_as_None(Py_UNICODE c)
{ {
if (c == '\0') { if (c == '\0') {
Py_INCREF(Py_None); Py_INCREF(Py_None);
return Py_None; return Py_None;
} }
else else
return PyUnicode_DecodeASCII((char*)&c, 1, NULL); return PyUnicode_FromUnicode((Py_UNICODE *)&c, 1);
} }
static PyObject * static PyObject *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment