Skip to content

Commit eb93f91

Browse files
committed
Fix conversion when writing to T_(U)INT members
1 parent e2d55b1 commit eb93f91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/capi/CApiMemberAccessNodes.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ abstract static class WriteUIntNode extends WriteTypeNode {
438438
static void write(Object pointer, Object newValue,
439439
@Cached AsNativePrimitiveNode asLong,
440440
@Cached CStructAccess.WriteIntNode write) {
441-
write.write(pointer, (int) asLong.toUInt64(newValue, false));
441+
write.write(pointer, (int) asLong.toUInt64(newValue, true));
442442
}
443443
}
444444

@@ -536,9 +536,9 @@ private static WriteTypeNode getWriteNode(int type) {
536536
case T_USHORT:
537537
return WriteShortNodeGen.create();
538538
case T_INT:
539-
return WriteUIntNodeGen.create();
540-
case T_UINT:
541539
return WriteIntNodeGen.create();
540+
case T_UINT:
541+
return WriteUIntNodeGen.create();
542542
case T_LONG:
543543
return WriteLongNodeGen.create();
544544
case T_FLOAT:

0 commit comments

Comments
 (0)