Skip to content

Commit

Permalink
fixup: widen integer multiplication
Browse files Browse the repository at this point in the history
  • Loading branch information
kgiusti committed Nov 17, 2024
1 parent a7ea2c7 commit 843d0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adaptors/amqp/container.c
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ static void qd_session_set_remote_incoming_window(qd_session_t *qd_ssn, uint32_t

// if the remotes max window is smaller than the default outgoing bytes limit then adjust the limits down
// otherwise we may never resume sending on blocked links (stall) since the low limit will never be exceeded.
size_t window_bytes = in_window * qd_ssn->remote_max_frame;
size_t window_bytes = (size_t) in_window * qd_ssn->remote_max_frame;
if (window_bytes < qd_ssn->outgoing_bytes_high_threshold) {
qd_ssn->outgoing_bytes_high_threshold = window_bytes;
qd_ssn->outgoing_bytes_low_threshold = window_bytes / 2;
Expand Down

0 comments on commit 843d0da

Please sign in to comment.