Skip to content

Commit

Permalink
julia 0.7 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmaykm committed Jul 5, 2018
1 parent 6d8affe commit 62d6ec7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions REQUIRE
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
julia 0.6

Compat 0.69.0
4 changes: 4 additions & 0 deletions src/Memcache.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
module Memcache

using Compat
using Compat.Sockets
using Compat.Serialization

import Base: close, touch, get, replace, quit

export set, cas, add, replace, append, prepend, get, touch, incr, decr, delete
Expand Down
2 changes: 1 addition & 1 deletion src/client.jl
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function mc_recv(mc::MemcacheClient)
split(s, ' ', limit=2)
end

mc_recv(mc::MemcacheClient, len::Integer) = mc_recv(mc, Array{UInt8,1}(len))
mc_recv(mc::MemcacheClient, len::Integer) = mc_recv(mc, Vector{UInt8}(undef, len))

function mc_recv(mc::MemcacheClient, data::Array{UInt8,1})
read!(mc.sock, data)
Expand Down

0 comments on commit 62d6ec7

Please sign in to comment.