Skip to content

Commit a1ea773

Browse files
committed
fixup! Prefer aligned_sizeof
1 parent 5774411 commit a1ea773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/texture.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Base.length(tm::CuTextureArray) = prod(size(tm))
6161
Base.eltype(tm::CuTextureArray{T,N}) where {T,N} = T
6262
Base.elsize(tm::CuTextureArray) = aligned_sizeof(eltype(tm))
6363

64-
Base.sizeof(tm::CuTextureArray) = elsize(tm) * length(tm)
64+
Base.sizeof(tm::CuTextureArray) = Base.elsize(tm) * length(tm)
6565

6666
Base.pointer(t::CuTextureArray) = t.mem.ptr
6767

0 commit comments

Comments
 (0)