This commit is contained in:
Kovid Goyal 2022-08-11 15:47:06 +05:30
parent 1e0e32e282
commit 2fd2e07342
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -3025,7 +3025,7 @@ draw(Screen *self, PyObject *src) {
} }
extern void extern void
parse_sgr(Screen *screen, uint32_t *buf, unsigned int num, unsigned int *params, PyObject *dump_callback, const char *report_name, Region *region); parse_sgr(Screen *screen, uint32_t *buf, unsigned int num, int *params, PyObject *dump_callback, const char *report_name, Region *region);
static PyObject* static PyObject*
apply_sgr(Screen *self, PyObject *src) { apply_sgr(Screen *self, PyObject *src) {
@ -3033,7 +3033,7 @@ apply_sgr(Screen *self, PyObject *src) {
if (PyUnicode_READY(src) != 0) { return PyErr_NoMemory(); } if (PyUnicode_READY(src) != 0) { return PyErr_NoMemory(); }
Py_UCS4 *buf = PyUnicode_AsUCS4Copy(src); Py_UCS4 *buf = PyUnicode_AsUCS4Copy(src);
if (!buf) return NULL; if (!buf) return NULL;
unsigned int params[MAX_PARAMS] = {0}; int params[MAX_PARAMS] = {0};
parse_sgr(self, buf, PyUnicode_GET_LENGTH(src), params, NULL, "parse_sgr", NULL); parse_sgr(self, buf, PyUnicode_GET_LENGTH(src), params, NULL, "parse_sgr", NULL);
Py_RETURN_NONE; Py_RETURN_NONE;
} }