Skip to content

Commit

Permalink
change uv_write return type back to Int
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Feb 18, 2015
1 parent 233ebd8 commit 7535258
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base/stream.jl
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ function uv_write(s::AsyncStream, p, n::Integer)
finally
c_free(uvw)
end
return n
return Int(n)
end

## low-level calls ##
Expand All @@ -754,8 +754,8 @@ write(s::AsyncStream, b::UInt8) = write(s, [b])
write(s::AsyncStream, c::Char) = write(s, string(c))
function write{T}(s::AsyncStream, a::Array{T})
if isbits(T)
n = uint(length(a)*sizeof(T))
return uv_write(s, a, n);
n = uint(length(a))*sizeof(T)
return uv_write(s, a, n)
else
check_open(s)
invoke(write,(IO,Array),s,a)
Expand Down

0 comments on commit 7535258

Please sign in to comment.