Skip to content

Commit 537b3e7

Browse files
author
Gaika
authored
Merge pull request #266 from rehmi/patch-1
Correct type for arg()
2 parents 8238f8d + 26c1c54 commit 537b3e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wrap.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ function abs(_in::AFArray{T,N}) where {T,N}
380380
AFArray{T,N}(out[])
381381
end
382382

383-
function arg(_in::AFArray{T,N}) where {T,N}
383+
function arg(_in::AFArray{Complex{T},N}) where {T,N}
384384
out = RefValue{af_array}(0)
385385
_error(ccall((:af_arg,af_lib),af_err,(Ptr{af_array},af_array),out,_in.arr))
386386
AFArray{T,N}(out[])

0 commit comments

Comments
 (0)