Skip to content

Commit

Permalink
Merge pull request JuliaGPU#508 from JuliaGPU/tb/print_conversion
Browse files Browse the repository at this point in the history
Convert unsigned short ints to Cint for printf.
  • Loading branch information
maleadt authored Oct 23, 2020
2 parents 96d15c5 + 0673939 commit fd59518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device/intrinsics/output.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export @cuprintf
# > automatically promoted to double. Therefore, varargs functions will never receive
# > arguments of type char, short int, or float.

if arg == Cchar || arg == Cshort
if arg == Cchar || arg == Cshort || arg == Cuchar || arg == Cushort
return :(Cint(arg))
elseif arg == Cfloat
return :(Cdouble(arg))
Expand Down

0 comments on commit fd59518

Please sign in to comment.