Skip to content

Commit a7e426e

Browse files
committed
Fix: Convert C integer to Python objects.
1 parent 38b5f94 commit a7e426e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python.cext/src/modsupport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ PyObject* _Py_BuildValue_SizeT(const char *format, ...) {
265265
APPEND_VALUE(list, (Py_ssize_t)ARG);
266266
break;
267267
case 'i':
268-
APPEND_VALUE(list, (int)ARG);
268+
APPEND_VALUE(list, PyLong_FromLong((int)ARG));
269269
break;
270270
case 's':
271271
if (ARG == NULL) {

0 commit comments

Comments
 (0)