File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
graalpython/com.oracle.graal.python.test/src/tests/cpyext Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 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.
2
2
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3
3
#
4
4
# The Universal Permissive License (UPL), Version 1.0
@@ -80,7 +80,7 @@ def compile_module(self, name):
80
80
test_PyBytes_FromStringAndSizeNULL = CPyExtFunction (
81
81
lambda args : len (b"\x00 " * args [0 ]),
82
82
lambda : ( (128 , ), ),
83
- code = """PyObject* PyBytes_FromStringAndSizeNULL(Py_ssize_t n) {
83
+ code = """Py_ssize_t PyBytes_FromStringAndSizeNULL(Py_ssize_t n) {
84
84
// we are return the length because the content is random (uninitialized)
85
85
return PyBytes_Size(PyBytes_FromStringAndSize(NULL, n));
86
86
}
You can’t perform that action at this time.
0 commit comments