Skip to content

Commit bdeb2ba

Browse files
committed
Fix: correctly convert ptr arg for destroy func
1 parent 4bd46ed commit bdeb2ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy/GraalHPyJNIContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ static Object doCached(GraalHPyJNIFunctionPointer receiver, Object[] arguments,
211211
(long) arguments[3], convertArgNode.execute(arguments, 4));
212212
break;
213213
case DESTROYFUNC:
214-
GraalHPyContext.hpyCallDestroyFunc((long) arguments[0], receiver.pointer);
214+
GraalHPyContext.hpyCallDestroyFunc(convertArgNode.execute(arguments, 0), receiver.pointer);
215215
result = 0;
216216
break;
217217
case FREEFUNC:

0 commit comments

Comments
 (0)