Skip to content

Commit

Permalink
Change the line that has already been fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
d2weber committed Sep 18, 2024
1 parent d6eaf8e commit 16345da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socket/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ impl<'a> Socket<'a> {
/// Used in internal calculations as well as packet generation.
#[inline]
fn scaled_window(&self) -> u16 {
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)
}

/// Return the last window field value, including scaling according to RFC 1323.
Expand Down

0 comments on commit 16345da

Please sign in to comment.