Skip to content

Commit 7adec9e

Browse files
committed
Fix: incorrect return type in native function.
1 parent 2b0edbe commit 7adec9e

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
22
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33
#
44
# The Universal Permissive License (UPL), Version 1.0
@@ -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 = """Py_ssize_t 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)