File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
graalpython/com.oracle.graal.python.cext/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -526,7 +526,7 @@ PyAPI_FUNC(void) PyTruffle_DECREF(PyObject* obj) {
526
526
}
527
527
528
528
/** to be used from Java code only; calls ADDREF */
529
- PyAPI_FUNC (Py_ssize_t ) PyTruffle_ADDREF (unsigned long ptr , Py_ssize_t value ) {
529
+ PyAPI_FUNC (Py_ssize_t ) PyTruffle_ADDREF (intptr_t ptr , Py_ssize_t value ) {
530
530
PyObject * obj = (PyObject * ) ptr ; // avoid type attachment at the interop boundary
531
531
#ifdef ASSERTIONS
532
532
if (obj -> ob_refcnt & 0xFFFFFFFF00000000L ) {
@@ -546,7 +546,7 @@ PyAPI_FUNC(Py_ssize_t) PyTruffle_ADDREF(unsigned long ptr, Py_ssize_t value) {
546
546
}
547
547
548
548
/** to be used from Java code only; calls DECREF */
549
- PyAPI_FUNC (Py_ssize_t ) PyTruffle_SUBREF (unsigned long ptr , Py_ssize_t value ) {
549
+ PyAPI_FUNC (Py_ssize_t ) PyTruffle_SUBREF (intptr_t ptr , Py_ssize_t value ) {
550
550
PyObject * obj = (PyObject * ) ptr ; // avoid type attachment at the interop boundary
551
551
#ifdef ASSERTIONS
552
552
if (obj -> ob_refcnt & 0xFFFFFFFF00000000L ) {
@@ -604,7 +604,7 @@ PyAPI_FUNC(uint64_t) PyTruffle_Wchar_Size() {
604
604
}
605
605
606
606
/** free's a native pointer or releases a Sulong handle; DO NOT CALL WITH MANAGED POINTERS ! */
607
- PyAPI_FUNC (void ) PyTruffle_Free (unsigned long val ) {
607
+ PyAPI_FUNC (void ) PyTruffle_Free (intptr_t val ) {
608
608
PyMem_RawFree ((void * ) val );
609
609
}
610
610
You can’t perform that action at this time.
0 commit comments