Skip to content

Commit 004d0e3

Browse files
authored
fixed bug with empty constructors
fixes JuliaData#85
1 parent 1bb9c95 commit 004d0e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PooledArrays.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ end
199199
PooledArray{T}(d, signed=signed, compress=compress)
200200

201201
# Construct an empty PooledVector of a specific type
202-
@inline PooledArray(t::Type) = PooledArray(Array(t,0))
203-
@inline PooledArray(t::Type, r::Type) = PooledArray(Array(t,0), r)
202+
@inline PooledArray(t::Type) = PooledArray(Array{t}(undef,0))
203+
@inline PooledArray(t::Type, r::Type) = PooledArray(Array{t}(undef,0), r)
204204

205205
##############################################################################
206206
##

0 commit comments

Comments
 (0)