1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-26 03:51: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

@@ -53,7 +53,7 @@ PPPoE::PPPoE(const uint8_t* buffer, uint32_t total_sz)
: tags_size_() {
InputMemoryStream stream(buffer, total_sz);
stream.read(header_);
stream.size(std::min(stream.size(), (uint32_t)payload_length()));
stream.size(std::min(stream.size(), (size_t)payload_length()));
// If this is a session data packet
if (code() == 0) {
if (stream) {