Skip to content

Commit 8a661ed

Browse files
committed
fix j2c.jl j2c_sumOfThree return array dimension
1 parent 74c4c85 commit 8a661ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/j2c.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ offload(sumOfThree, (Int,))
6161
sumOfThree(1)
6262

6363
@eval function j2c_sumOfThree(N::Int)
64-
ret_out_dims = zeros(Cint, 1)
64+
ret_out_dims = zeros(Cint, 2)
6565
result = ccall((:sumOfThree_, $(libname)), Ptr{Float64}, (Int, Int, Int, Ptr{Cint},), -1, N, 1, ret_out_dims)
6666
rod64 = convert(Array{Int,1}, ret_out_dims)
6767
reshape(pointer_to_array(result,prod(ret_out_dims),true),tuple(rod64...))

0 commit comments

Comments
 (0)