Skip to content

Commit c1499c0

Browse files
committed
fix small constructor issue
1 parent 4ae5241 commit c1499c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

NDTensors/src/lib/UnallocatedArrays/src/unallocatedfill.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ struct UnallocatedFill{ElT,N,Axes,Alloc} <: AbstractFill{ElT,N,Axes}
77
end
88

99
function UnallocatedFill{ElT,N,Axes}(f::Fill, alloc::Type) where {ElT,N,Axes}
10-
return new{ElT,N,Axes,Type{alloc}}(f, alloc)
10+
return UnallocatedFill{ElT,N,Axes,Type{alloc}}(f, alloc)
1111
end
1212

1313
function UnallocatedFill{ElT,N}(f::Fill, alloc) where {ElT,N}

NDTensors/src/lib/UnallocatedArrays/src/unallocatedzeros.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ struct UnallocatedZeros{ElT,N,Axes,Alloc} <: AbstractZeros{ElT,N,Axes}
1717
end
1818

1919
function UnallocatedZeros{ElT,N,Axes}(z::Zeros, alloc::Type) where {ElT,N,Axes}
20-
return new{ElT,N,Axes,Type{alloc}}(z, alloc)
20+
return UnallocatedZeros{ElT,N,Axes,Type{alloc}}(z, alloc)
2121
end
2222

2323
function UnallocatedZeros{ElT,N}(z::Zeros, alloc) where {ElT,N}

0 commit comments

Comments
 (0)