Skip to content

Commit

Permalink
Fix type of atomic update for 1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Sep 24, 2024
1 parent 96b6cca commit 80bd12f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sockets/client.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function c_process_read_message(handler, slot, messageptr)::Cint
ret = AWS_OP_SUCCESS
aws_mem_release(msg.allocator, messageptr)
# update the atomic bytesavailable field
rb_ba = @atomic sock.readbuf_bytesavailable += data.len
rb_ba = @atomic sock.readbuf_bytesavailable += Int(data.len)
if rb_ba >= sock.buffer_capacity
sock.debug && @info "Buffer is full; not incrementing read window"
# Do not increment the read window
Expand Down

0 comments on commit 80bd12f

Please sign in to comment.