Skip to content

Commit b7e1e83

Browse files
committed
Fix copy-paste error
1 parent 60f5d70 commit b7e1e83

File tree

1 file changed

+2
-2
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy/GraalHPyNodes.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,8 @@ void write(WriteAttributeToObjectNode writeAttributeToObjectNode, ReadAttributeF
502502
* that we cannot easily do the same since we have two separate sets of slots: HPy
503503
* slots and legacy slots. Right now, the HPy slots have precedence.
504504
*/
505-
if (!keyExists(readAttributeFromObjectNode, enclosingType, key)) {
506-
writeAttributeToObjectNode.execute(enclosingType, key, value);
505+
if (!keyExists(readAttributeFromObjectNode, enclosingType, prop.key)) {
506+
writeAttributeToObjectNode.execute(enclosingType, prop.key, prop.value);
507507
}
508508
}
509509
}

0 commit comments

Comments
 (0)