Skip to content

Commit f7a51f9

Browse files
zydtigerpicnixz
andauthored
Update Modules/_cursesmodule.c
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent ad832bd commit f7a51f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_cursesmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1834,7 +1834,7 @@ PyCursesWindow_GetStr(PyObject *op, PyObject *args)
18341834
int rtn;
18351835

18361836
/* could make the buffer size larger/dynamic */
1837-
const int max_buf_size = 2048;
1837+
Py_ssize_t max_buf_size = 2048;
18381838
PyObject *result = PyBytes_FromStringAndSize(NULL, max_buf_size);
18391839
char *buf = PyBytes_AS_STRING(result);
18401840

0 commit comments

Comments
 (0)