1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-24 19:21:35 +01:00

Make *MemoryStream use size_t rather than uint32_t

This commit is contained in:
Matias Fontanini
2016-02-28 08:12:05 -08:00
parent 1681981fe8
commit cfbf88bb5f
3 changed files with 18 additions and 18 deletions

View File

@@ -131,7 +131,7 @@ IP::IP(const uint8_t* buffer, uint32_t total_sz)
// since this is the case when using TCP segmentation offload
if (tot_len() != 0) {
const uint32_t advertised_length = (uint32_t)tot_len() - head_len() * sizeof(uint32_t);
total_sz = min(stream.size(), advertised_length);
total_sz = min(static_cast<uint32_t>(stream.size()), advertised_length);
}
else {
total_sz = stream.size();