Skip to content

Commit 191f2ae

Browse files
KristofferCfredrikekre
authored andcommitted
fix and test that a certain broadcast pattern doesn't allocate (#33007)
1 parent 6723492 commit 191f2ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/broadcast.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ function check_broadcast_shape(shp, Ashp::Tuple)
503503
_bcsm(shp[1], Ashp[1]) || throw(DimensionMismatch("array could not be broadcast to match destination"))
504504
check_broadcast_shape(tail(shp), tail(Ashp))
505505
end
506-
check_broadcast_axes(shp, A) = check_broadcast_shape(shp, axes(A))
506+
@inline check_broadcast_axes(shp, A) = check_broadcast_shape(shp, axes(A))
507507
# comparing many inputs
508508
@inline function check_broadcast_axes(shp, A, As...)
509509
check_broadcast_axes(shp, A)

0 commit comments

Comments
 (0)