Skip to content

Commit f497cb7

Browse files
remove hardcoded int64
This caused the `similar` overload to not be used on windows 32-bit, causing data arrays to act differently.
1 parent 5db7d05 commit f497cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data_array.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ similar(A::DEDataArray) = deepcopy(A)
55
:(typeof(A)($(assignments...)))
66
end
77

8-
@generated function similar{T,N}(A::DEDataArray,::Type{T},dims::Tuple{Vararg{Int64,N}})
8+
@generated function similar{T,N}(A::DEDataArray,::Type{T},dims::Tuple{Vararg{Int,N}})
99
assignments = [s == :x ? :(zeros(A.x,T,dims)) : (s_new = Meta.quot(:($s)); :(deepcopy(getfield(A,$s_new)))) for s in fieldnames(A)]
1010
:(parameterless_type(A)($(assignments...)))
1111
end

0 commit comments

Comments
 (0)