Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Commit 7ba50ef

Browse files
author
Daniel Jette
committed
Use put with index for parallel pixel processor transform function
1 parent f56a413 commit 7ba50ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Library/src/main/java/com/shopify/testify/internal/processor/ParallelPixelProcessor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class ParallelPixelProcessor private constructor() {
8787
val diffBuffer = IntBuffer.allocate(chunkData.size)
8888

8989
runBlockingInChunks(chunkData) { _, index ->
90-
diffBuffer.put(transformer(baselineBuffer[index], currentBuffer[index]))
90+
diffBuffer.put(index, transformer(baselineBuffer[index], currentBuffer[index]))
9191
true
9292
}
9393

0 commit comments

Comments
 (0)