Skip to content

Commit

Permalink
Merge pull request JuliaGPU#199 from JuliaGPU/tb/softscope
Browse files Browse the repository at this point in the history
Avoid softscope warning.
  • Loading branch information
maleadt committed Jan 29, 2020
2 parents 1a0ab87 + a8b5750 commit d1c2018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Base.show(io::IO, err::CuError) = print(io, "CuError($(err.code))")

# define shorthands that give CuError objects
for code in instances(cudaError_enum)
name = String(Symbol(code))
local name = String(Symbol(code))
shorthand = Symbol(name[6:end]) # strip the CUDA_ prefix
@eval const $shorthand = CuError($code)
end
Expand Down

0 comments on commit d1c2018

Please sign in to comment.