This commit is contained in:
Kovid Goyal 2018-09-27 08:40:16 +05:30
parent c1397fd366
commit 6c8a52875e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -2148,7 +2148,7 @@ COUNT_WRAP(cursor_forward)
static PyObject*
wcwidth_wrap(PyObject UNUSED *self, PyObject *chr) {
return PyLong_FromUnsignedLong(wcwidth_std(PyLong_AsLong(chr)));
return PyLong_FromLong(wcwidth_std(PyLong_AsLong(chr)));
}