Skip to content

Commit 0d6e40d

Browse files
committed
Fix: Add missing return statement to CDataObject#writeByte.
1 parent b3b92d3 commit 0d6e40d

File tree

1 file changed

+1
-0
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/ctypes

1 file changed

+1
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/ctypes/CDataObject.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ void writeByte(int byteIndex, byte value,
136136
@CachedLibrary(limit = "2") PythonBufferAccessLibrary bufferLib) {
137137
if (b_ptr.ptr != null) {
138138
bufferLib.writeByte(b_ptr.ptr, b_ptr.offset + byteIndex, value);
139+
return;
139140
}
140141
throw CompilerDirectives.shouldNotReachHere("buffer write to empty CDataObject");
141142
}

0 commit comments

Comments
 (0)