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.
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 }
You can’t perform that action at this time.
0 commit comments