Skip to content

Commit a75c773

Browse files
authored
Cast sizeof(::LocalMem) to Int (#323)
1 parent 51a39ef commit a75c773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cl/kernel.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ end
4646

4747
Base.ndims(l::LocalMem) = 1
4848
Base.eltype(l::LocalMem{T}) where {T} = T
49-
Base.sizeof(l::LocalMem{T}) where {T} = l.nbytes
49+
Base.sizeof(l::LocalMem{T}) where {T} = Int(l.nbytes)
5050
Base.length(l::LocalMem{T}) where {T} = Int(l.nbytes ÷ sizeof(T))
5151

5252
# preserve the LocalMem; it will be handled by `set_arg!`

0 commit comments

Comments
 (0)