Skip to content

Commit 7c5b614

Browse files
committed
use UPCALL define in PyLong_FromLong
1 parent 6fa7cc4 commit 7c5b614

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,7 @@ void * PyLong_AsVoidPtr(PyObject *obj){
110110
}
111111

112112
PyObject * PyLong_FromLong(long n) {
113-
void *result = to_sulong(polyglot_invoke(PY_TRUFFLE_CEXT, "PyLong_FromLongLong", n, 1));
114-
if (result == ERROR_MARKER) {
115-
return NULL;
116-
}
117-
return result;
113+
return UPCALL_CEXT_O(_jls_PyLong_FromLongLong, n, 1);
118114
}
119115

120116
PyObject * PyLong_FromLongLong(long long n) {

0 commit comments

Comments
 (0)