We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e0926b commit 47958b3Copy full SHA for 47958b3
src/socket/tcp.rs
@@ -677,7 +677,7 @@ impl<'a> Socket<'a> {
677
/// Used in internal calculations as well as packet generation.
678
#[inline]
679
fn scaled_window(&self) -> u16 {
680
- u16::try_from(self.rx_buffer.window() >> self.remote_win_shift as usize).unwrap_or(u16::MAX)
+ u16::try_from(self.rx_buffer.window() >> self.remote_win_shift).unwrap_or(u16::MAX)
681
}
682
683
/// Return the last window field value, including scaling according to RFC 1323.
0 commit comments