Skip to content

Commit c9d66e6

Browse files
committed
Remove an ambiguity.
1 parent 9136cb6 commit c9d66e6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/device/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# helper type for writing Int32 literals
44
# TODO: upstream this
55
struct Literal{T} end
6-
Base.:(*)(x, ::Type{Literal{T}}) where {T} = T(x)
6+
Base.:(*)(x::Number, ::Type{Literal{T}}) where {T} = T(x)
77
const i32 = Literal{Int32}
88

99
# local method table for device functions

test/base/aqua.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ let ambs = Aqua.detect_ambiguities(CUDA; recursive=true)
88
# StaticArrays pirates a bunch of Random stuff...
99
filter!(x -> !pkg_match("StaticArrays", pkgdir(first(x).module)), ambs)
1010

11+
@warn "Remaining ambiguities: $(length(ambs))"
1112
@test length(ambs) 15
1213
end
1314

0 commit comments

Comments
 (0)