Skip to content

Commit

Permalink
Fix deprecation warnings for pointer conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
simonster committed Apr 4, 2014
1 parent 9b7812c commit 2d64b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MAT_v5.jl
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ function getvarnames(matfile::Matlabv5File)
dest = zeros(Uint8, 1024)
dest_buf_size = Int[1024]

ret = ccall((:uncompress, @windows ? "zlib1" : "libz"), Int32, (Ptr{Uint}, Ptr{Uint}, Ptr{Uint}, Uint),
ret = ccall((:uncompress, @windows ? "zlib1" : "libz"), Int32, (Ptr{Uint8}, Ptr{Int}, Ptr{Uint8}, Uint),
dest, dest_buf_size, source, length(source))

# Zlib may complain because the buffer is small or the data are incomplete
Expand Down

0 comments on commit 2d64b13

Please sign in to comment.