Skip to content

Commit 42e1cda

Browse files
committed
Merge remote-tracking branch 'origin/tim/numpy-building' into tim/numpy-building
2 parents 335e58b + a7e426e commit 42e1cda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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
@@ -39,7 +39,7 @@
3939
#include "capi.h"
4040

4141
void _PyErr_BadInternalCall(const char *filename, int lineno) {
42-
truffle_invoke(PY_TRUFFLE_CEXT, "_PyErr_BadInternalCall", truffle_read_string(filename), lineno);
42+
polyglot_invoke(PY_TRUFFLE_CEXT, "_PyErr_BadInternalCall", polyglot_from_string(filename, "utf-8"), lineno, Py_NoValue);
4343
}
4444

4545
#undef PyErr_BadInternalCall

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ PyObject* _Py_BuildValue_SizeT(const char *format, ...) {
306306
case 'i':
307307
case 'b':
308308
case 'h':
309-
APPEND_VALUE(list, (int)ARG);
309+
APPEND_VALUE(list,PyLong_FromLong((int)ARG));
310310
break;
311311
case 'l':
312312
APPEND_VALUE(list, (long)ARG);

0 commit comments

Comments
 (0)