Skip to content

Commit 9d61a54

Browse files
committed
Add a microoptimisation
1 parent 384e3ac commit 9d61a54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/varnamedtuple.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ function _resize_partialarray!!(pa::PartialArray, inds)
304304
# may use a linear index that does not match between the old and the new arrays.
305305
@inbounds for i in CartesianIndices(pa.data)
306306
mask_val = pa.mask[i]
307-
new_mask[i] = mask_val
308307
if mask_val
308+
new_mask[i] = mask_val
309309
new_data[i] = pa.data[i]
310310
end
311311
end

0 commit comments

Comments
 (0)