Skip to content

Commit 211a658

Browse files
authored
Update src/KernelAbstractions.jl
1 parent 825822e commit 211a658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/KernelAbstractions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ end
608608
device!(::Backend, id::Int)
609609
"""
610610
function device!(backend::Backend, id::Int)
611-
if 0 < id <= ndevices(backend)
611+
if !(0 < id <= ndevices(backend))
612612
throw(ArgumentError("Device id $id out of bounds."))
613613
end
614614
return nothing

0 commit comments

Comments
 (0)