mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
[python] size_t for sbytes
This commit is contained in:
parent
5ff59ce421
commit
36174c1291
@ -624,7 +624,7 @@ NcPlane_putegc_yx(NcPlaneObject *self, PyObject *args)
|
||||
{
|
||||
int y = 0, x = 0;
|
||||
const char *egc = NULL;
|
||||
int sbytes = 0;
|
||||
size_t sbytes = 0;
|
||||
|
||||
GNU_PY_CHECK_BOOL(PyArg_ParseTuple(args, "iis",
|
||||
&y, &x,
|
||||
@ -632,35 +632,35 @@ NcPlane_putegc_yx(NcPlaneObject *self, PyObject *args)
|
||||
|
||||
CHECK_NOTCURSES(ncplane_putegc_yx(self->ncplane_ptr, y, x, egc, &sbytes));
|
||||
|
||||
return Py_BuildValue("i", sbytes);
|
||||
return Py_BuildValue("n", sbytes);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
NcPlane_putegc(NcPlaneObject *self, PyObject *args)
|
||||
{
|
||||
const char *egc = NULL;
|
||||
int sbytes = 0;
|
||||
size_t sbytes = 0;
|
||||
|
||||
GNU_PY_CHECK_BOOL(PyArg_ParseTuple(args, "s",
|
||||
&egc));
|
||||
|
||||
CHECK_NOTCURSES(ncplane_putegc(self->ncplane_ptr, egc, &sbytes));
|
||||
|
||||
return Py_BuildValue("i", sbytes);
|
||||
return Py_BuildValue("n", sbytes);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
NcPlane_putegc_stained(NcPlaneObject *self, PyObject *args)
|
||||
{
|
||||
const char *egc = NULL;
|
||||
int sbytes = 0;
|
||||
size_t sbytes = 0;
|
||||
|
||||
GNU_PY_CHECK_BOOL(PyArg_ParseTuple(args, "s",
|
||||
&egc));
|
||||
|
||||
CHECK_NOTCURSES(ncplane_putegc(self->ncplane_ptr, egc, &sbytes));
|
||||
|
||||
return Py_BuildValue("i", sbytes);
|
||||
return Py_BuildValue("n", sbytes);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
Loading…
x
Reference in New Issue
Block a user