Skip to content

Commit c061f89

Browse files
committed
change from const int to Py_ssize_t
1 parent fd5c3f4 commit c061f89

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
@@ -2059,7 +2059,7 @@ PyCursesWindow_InStr(PyObject *op, PyObject *args)
20592059
int rtn;
20602060

20612061
/* could make the buffer size larger/dynamic */
2062-
const int max_buf_size = 2048;
2062+
Py_ssize_t max_buf_size = 2048;
20632063
PyObject *result = PyBytes_FromStringAndSize(NULL, max_buf_size);
20642064
char *buf = PyBytes_AS_STRING(result);
20652065

0 commit comments

Comments
 (0)