Skip to content

Commit

Permalink
Fix Matrix constructor in write_binary_values (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipJergleAlmquist authored Jun 16, 2021
1 parent a812307 commit 06e7c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ end
function write_binary_values(stream::IO, elen, props::ArrayProperty{T}...) where {T}
batchsize = 100
numprops = length(props)
buf = Matrix{T}(numprops, batchsize)
buf = Matrix{T}(undef, numprops, batchsize)
for i=1:batchsize:elen
thisbatchsize = min(batchsize, elen-i+1)
for j=1:numprops
Expand Down

0 comments on commit 06e7c74

Please sign in to comment.