Skip to content

Commit 01f33bb

Browse files
committed
Fix invalid slot mapping.
1 parent c64f187 commit 01f33bb

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ int PyType_Ready(PyTypeObject* cls) {
393393
if (mappings) {
394394
ADD_SLOT("__len__", mappings->mp_length, -1);
395395
ADD_SLOT("__getitem__", mappings->mp_subscript, -2);
396-
ADD_SLOT("__setitem__", mappings->mp_subscript, -3);
396+
ADD_SLOT("__setitem__", mappings->mp_ass_subscript, -3);
397397
}
398398

399399
PyAsyncMethods* async = cls->tp_as_async;

0 commit comments

Comments
 (0)