Skip to content

Commit 561109b

Browse files
Silence 1.12 warnings (#310)
1 parent 4103739 commit 561109b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/cl/pointer.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ Base.eltype(::Type{<:CLPtr{T}}) where {T} = T
4040
Base.convert(::Type{T}, x::CLPtr) where {T <: Integer} = T(UInt(x))
4141
## integer to pointer
4242
Base.convert(::Type{CLPtr{T}}, x::Union{Int, UInt}) where {T} = CLPtr{T}(x)
43-
Int(x::CLPtr) = Base.bitcast(Int, x)
44-
UInt(x::CLPtr) = Base.bitcast(UInt, x)
43+
Base.Int(x::CLPtr) = Base.bitcast(Int, x)
44+
Base.UInt(x::CLPtr) = Base.bitcast(UInt, x)
4545

4646
# between regular and OpenCL pointers
4747
Base.convert(::Type{<:Ptr}, p::CLPtr) =

src/broadcast.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# broadcasting
22

3-
using Base.Broadcast: BroadcastStyle, Broadcasted
3+
import Base.Broadcast: BroadcastStyle, Broadcasted
44

55
struct CLArrayStyle{N, B} <: AbstractGPUArrayStyle{N} end
66
CLArrayStyle{M, B}(::Val{N}) where {N, M, B} = CLArrayStyle{N, B}()

0 commit comments

Comments
 (0)