Skip to content

Commit 83c800a

Browse files
committed
Fix wrong receiver for PythonObjectLibrary in PMemoryView
1 parent c517f22 commit 83c800a

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/memoryview/PMemoryView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ boolean isBuffer() {
6969
@ExportMessage
7070
int getBufferLength(
7171
@Shared("readNativeMemoryViewNode") @Cached ReadAttributeFromDynamicObjectNode readNativeMemoryViewNode,
72-
@CachedLibrary("this") PythonObjectLibrary lib) {
72+
@CachedLibrary(limit = "1") PythonObjectLibrary lib) {
7373
Object nativeMemoryViewObject = readNativeMemoryViewNode.execute(getStorage(), C_MEMORYVIEW);
7474
return lib.length(nativeMemoryViewObject);
7575
}
7676

7777
@ExportMessage
7878
byte[] getBufferBytes(
7979
@Shared("readNativeMemoryViewNode") @Cached ReadAttributeFromDynamicObjectNode readNativeMemoryViewNode,
80-
@CachedLibrary("this") PythonObjectLibrary lib,
80+
@CachedLibrary(limit = "1") PythonObjectLibrary lib,
8181
@Cached PInteropSubscriptNode subscriptNode,
8282
@Cached CastToByteNode castToByteNode) {
8383
Object nativeMemoryViewObject = readNativeMemoryViewNode.execute(getStorage(), C_MEMORYVIEW);

0 commit comments

Comments
 (0)