Skip to content

Commit 4fcd925

Browse files
committed
add missing cast
1 parent d3f0426 commit 4fcd925

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python.cext/src

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python.cext/src/capi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ void* get_ob_type(PyObject* obj) {
231231
return truffle_managed_from_handle(type);
232232
} else {
233233
// we have stored a handle to the Java class in ob_refcnt
234-
void* handle = (void*)type->ob_refcnt;
234+
void* handle = (void*)((PyObject*)type)->ob_refcnt;
235235
if (truffle_is_handle_to_managed(handle)) {
236236
return truffle_managed_from_handle(handle);
237237
} else {

0 commit comments

Comments
 (0)