Skip to content

Commit 219479a

Browse files
Merge pull request #92 from musm/ret
Add return to mx
2 parents 4b35b7a + 4bf3f70 commit 219479a

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)