Skip to content

Commit 2d95940

Browse files
committed
Fix: missing to_sulong in _PyUnicode_FromUCS1
1 parent e81766b commit 2d95940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ PyObject * PyUnicode_FromWideChar(const wchar_t *u, Py_ssize_t size) {
487487

488488
static PyObject* _PyUnicode_FromUCS1(const Py_UCS1* u, Py_ssize_t size) {
489489
// CPython assumes latin1 when decoding an UCS1 array
490-
return polyglot_from_string((const char *) u, "ISO-8859-1");
490+
return to_sulong(polyglot_from_string((const char *) u, "ISO-8859-1"));
491491
}
492492

493493
static PyObject* _PyUnicode_FromUCS2(const Py_UCS2 *u, Py_ssize_t size) {

0 commit comments

Comments
 (0)