Skip to content

Commit 4bf3f70

Browse files
committed
Add return to mx
1 parent 4e9b244 commit 4bf3f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mxarray.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ function mxstruct{T}(d::T)
456456
for i = 1:length(names)
457457
set_field(mx, names_str[i], mxarray(getfield(d, names[i])))
458458
end
459-
mx
459+
return mx
460460
end
461461

462462
function mxstructarray{T}(d::Array{T})

0 commit comments

Comments
 (0)