Skip to content

Commit f487f73

Browse files
committed
fixup! make arrays follow alignment as well.
1 parent 03f1722 commit f487f73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static inline jl_array_t *_new_array(jl_value_t *atype, uint32_t ndims, size_t *
147147
isunboxed = store_unboxed(el_type);
148148
if (isunboxed) {
149149
elsz = jl_datatype_size(el_type);
150-
elalign =jl_datatype_size(el_type);
150+
elalign = jl_datatype_align(el_type);
151151
}
152152
return _new_array_(atype, ndims, dims, isunboxed, elsz, elalign);
153153
}

0 commit comments

Comments
 (0)