Skip to content

Commit 51ee4b0

Browse files
committed
Remove invalid 'to_sulong' conversion.
1 parent 00eb271 commit 51ee4b0

File tree

2 files changed

+1
-1
lines changed
  • graalpython

2 files changed

+1
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,6 @@ PyObject* PyObject_CallObject(PyObject* callable, PyObject* args) {
538538
PyObject* PyObject_CallFunction(PyObject* callable, const char* fmt, ...) {
539539
PyObject* args;
540540
CALL_WITH_VARARGS(args, Py_BuildValue, 2, fmt);
541-
args = to_sulong(args);
542541
if (strlen(fmt) < 2) {
543542
PyObject* singleArg = args;
544543
args = PyTuple_New(strlen(fmt));

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ public TruffleObject getForeignObject() {
189189
}
190190

191191
public static TruffleObjectNativeWrapper wrap(TruffleObject foreignObject) {
192+
assert !(foreignObject instanceof PythonNativeWrapper) : "attempting to wrap a native wrapper";
192193
return new TruffleObjectNativeWrapper(foreignObject);
193194
}
194195

0 commit comments

Comments
 (0)