Skip to content

Commit 8ae46f3

Browse files
committed
Removed odd memory access
1 parent 718f982 commit 8ae46f3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/GraphBLAS-sharp/Implementations.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,12 @@ and COOMatrix<'a when 'a : struct and 'a : equality>(rowCount: int, columnCount:
240240
let secondColumn = secondColumnsBuffer.[boundaryY]
241241

242242
if boundaryX < 0 || boundaryY >= 0 && (firstRow < secondRow || firstRow = secondRow && firstColumn < secondColumn) then
243-
allRowsBuffer.[i] <- secondRowsBuffer.[boundaryY]
244-
allColumnsBuffer.[i] <- secondColumnsBuffer.[boundaryY]
243+
allRowsBuffer.[i] <- secondRow
244+
allColumnsBuffer.[i] <- secondColumn
245245
allValuesBuffer.[i] <- secondValuesBuffer.[boundaryY]
246246
else
247-
allRowsBuffer.[i] <- firstRowsBuffer.[boundaryX]
248-
allColumnsBuffer.[i] <- firstColumnsBuffer.[boundaryX]
247+
allRowsBuffer.[i] <- firstRow
248+
allColumnsBuffer.[i] <- firstColumn
249249
allValuesBuffer.[i] <- firstValuesBuffer.[boundaryX]
250250
@>
251251

0 commit comments

Comments
 (0)