QUIC: fixed C4334 MSVC warning about 32 to 64 bits conversion.

This commit is contained in:
Sergey Kandaurov 2022-11-22 18:05:37 +04:00
parent 3cf42a4a1d
commit a53a72f079
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ ngx_quic_rtt_sample(ngx_connection_t *c, ngx_quic_ack_frame_t *ack,
} else {
qc->min_rtt = ngx_min(qc->min_rtt, latest_rtt);
ack_delay = ack->delay * (1 << qc->ctp.ack_delay_exponent) / 1000;
ack_delay = (ack->delay << qc->ctp.ack_delay_exponent) / 1000;
if (c->ssl->handshaked) {
ack_delay = ngx_min(ack_delay, qc->ctp.max_ack_delay);