Skip to content

Commit 313f35d

Browse files
authored
Merge pull request #198 from mbauman/patch-2
Fix overflow on cumsum! test
2 parents 30cfead + ec01f53 commit 313f35d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/array/ArrayBenchmarks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ g["accumulate!", "Float64"] = @benchmarkable accumulate!(+, $resafloat, $afloat)
358358
g["accumulate!", "Int"] = @benchmarkable accumulate!(+, $resaint, $aint)
359359

360360
g["cumsum!", "Float64"] = @benchmarkable cumsum!($resafloat, $afloat)
361-
g["cumsum!", "Int"] = @benchmarkable cumsum!($resaint, $aint)
361+
g["cumsum!", "Int"] = @benchmarkable cumsum!($resaint, $(aintlength(aint)))
362362

363363
mfloat = samerand(10^3,10^3)
364364
g["cumsum", "Float64", "dim1"] = @benchmarkable Compat.cumsum($mfloat, dims=1)

src/linalg/LinAlgBenchmarks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ for s in SIZES
105105

106106
for T in [Int32, Int64, Float32, Float64]
107107
arr = samerand(T, s)
108-
g["cumsum!", T, s] = @benchmarkable cumsum!($arr, $arr)
108+
g["cumsum!", T, s] = @benchmarkable cumsum!($arr, $(arrlength(arr)))
109109
end
110110

111111
for M in (UpperTriangular, UnitUpperTriangular, NPDUpperTriangular, Hermitian)

0 commit comments

Comments
 (0)