From f8cb0ffcf4a58f8f408ad39f4b44791081be0ab5 Mon Sep 17 00:00:00 2001 From: Nicholas Bauer Date: Thu, 19 May 2022 02:26:09 -0400 Subject: [PATCH] Fix error --- base/abstractarray.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base/abstractarray.jl b/base/abstractarray.jl index 10071a12d97d53..47bc77c0e54dc5 100644 --- a/base/abstractarray.jl +++ b/base/abstractarray.jl @@ -2383,6 +2383,9 @@ function _typed_hvncat_dims(::Type{T}, dims::NTuple{N, Int}, row_first::Bool, as # validate shapes for lowest level of concatenation d = findfirst(>(1), dims) if d !== nothing # all dims are 1 + if row_first && d < 3 + d = d == 1 ? 2 : 1 + end nblocks = length(as) ÷ dims[d] for b ∈ 1:nblocks offset = ((b - 1) * dims[d])