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

This commit is contained in:
Skip Montanaro 2007-08-06 20:55:47 +00:00
parent 4626458cc5
commit e3b10f4c4c
1 changed files with 2 additions and 2 deletions

View File

@ -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 *