Skip to content

Commit

Permalink
fix resize! on PushVector to be consistent with Base (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristoffer Carlsson authored May 9, 2020
1 parent 55f8500 commit 4aad0c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pushvector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ function Base.resize!(v::PushVector, l::Integer)
# Only support shrinking for now, since that is all we need
@assert l <= v.l
v.l = l
return v
end

0 comments on commit 4aad0c8

Please sign in to comment.