Skip to content

Commit 14ca824

Browse files
committed
Need to convert to int to fix compile error
1 parent f1d67a3 commit 14ca824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/util/io/ChunkedByteBuffer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private[spark] class ChunkedByteBuffer(var chunks: Array[ByteBuffer]) {
6565
for (bytes <- getChunks()) {
6666
while (bytes.remaining() > 0) {
6767
val ioSize = Math.min(bytes.remaining(), bufferWriteChunkSize)
68-
bytes.limit(bytes.position + ioSize)
68+
bytes.limit(bytes.position + ioSize.toInt)
6969
channel.write(bytes)
7070
}
7171
}

0 commit comments

Comments
 (0)