Skip to content

Commit e99c111

Browse files
committed
Fix type mismatch in PyErr_BadInternalCall
1 parent 350d9a1 commit e99c111

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/errors.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#undef PyErr_BadInternalCall
4444
void PyErr_BadInternalCall(void) {
4545
assert(0 && "bad argument to internal function");
46-
Graal_PyTruffleErr_CreateAndSetException(PyExc_SystemError, truffleString("bad argument to internal function"));
46+
PyErr_SetString(PyExc_SystemError, "bad argument to internal function");
4747
}
4848
#define PyErr_BadInternalCall() _PyErr_BadInternalCall(__FILE__, __LINE__)
4949

0 commit comments

Comments
 (0)