Skip to content

Commit 5c9d9ff

Browse files
committed
Fix reading native string under managed
1 parent e3e0453 commit 5c9d9ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/util/CastToTruffleStringNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static TruffleString read(Object pointer,
156156
if (lib.isPointer(data) || data instanceof Long) {
157157
return fromNative.execute(data, 0, bytes, encoding, false);
158158
}
159-
byte[] result = readByte.readByteArray(pointer, bytes);
159+
byte[] result = readByte.readByteArray(data, bytes);
160160
return fromBytes.execute(result, encoding, false);
161161
}
162162
}

0 commit comments

Comments
 (0)