Skip to content

Commit

Permalink
Add Julia v0.3 compatibilty macro
Browse files Browse the repository at this point in the history
Make the unknown blocks wavwrite support work on Julia v0.3
  • Loading branch information
dancasimiro committed Jun 17, 2015
1 parent 07e2ad5 commit 3b63eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WAV.jl
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ function wavwrite(samples::Array, io::IO; Fs=8000, nbits=0, compression=0,

for eachchunk in chunks
write(io, eachchunk[1])
write_le(io, UInt32(length(eachchunk[2])))
write_le(io, @compat UInt32(length(eachchunk[2])))
for eachbyte in eachchunk[2]
write(io, eachbyte)
end
Expand Down

0 comments on commit 3b63eb7

Please sign in to comment.