Skip to content

Commit 910e62d

Browse files
committed
return result of PyBytes_Size is a long, not a pointer
1 parent 86bf01a commit 910e62d

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python.test/src/tests/cpyext

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_bytes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def compile_module(self, name):
8080
test_PyBytes_FromStringAndSizeNULL = CPyExtFunction(
8181
lambda args: len(b"\x00"*args[0]),
8282
lambda: ( (128, ), ),
83-
code = """PyObject* PyBytes_FromStringAndSizeNULL(Py_ssize_t n) {
83+
code = """long PyBytes_FromStringAndSizeNULL(Py_ssize_t n) {
8484
// we are return the length because the content is random (uninitialized)
8585
return PyBytes_Size(PyBytes_FromStringAndSize(NULL, n));
8686
}

0 commit comments

Comments
 (0)