Skip to content

Commit 592c844

Browse files
committed
Update
1 parent 3279a32 commit 592c844

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/broadcast.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ end
3131
@test y == 5
3232
# FIXME This should not allocate but I couldn't figure out where these
3333
# 240 come from.
34-
alloc_test(() -> MA.broadcast!!(+, a, b), 30 * sizeof(Int))
34+
alloc_test_le(() -> MA.broadcast!!(+, a, b), 288)
3535
alloc_test(() -> MA.broadcast!!(+, a, c), 0)
3636
end
3737

test/utilities.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ include("dummy.jl")
1010
# Half size on 32-bit.
1111
const BIGINT_ALLOC = Sys.WORD_SIZE == 64 ? 48 : 24
1212

13-
function alloc_test(f, n)
13+
function alloc_test(f::F, n) where {F}
1414
f() # compile
1515
@test n == @allocated f()
1616
end
1717

18-
function alloc_test_le(f, n)
18+
function alloc_test_le(f::F, n) where {F}
1919
f() # compile
2020
@test n >= @allocated f()
2121
end

0 commit comments

Comments
 (0)