From ed5ba191cd4afd7a804f9a3c33323bb27530710b Mon Sep 17 00:00:00 2001 From: Sebastian Dietrich Date: Fri, 22 Apr 2022 22:06:00 +0200 Subject: [PATCH] Fix handling of large messages (larger than 2GB) There were a few places where size_t should be used but uint32_t was, leading to errors when handling large messages and compiler warnings. --- include/amqpcpp/inbuffer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/amqpcpp/inbuffer.h b/include/amqpcpp/inbuffer.h index 38cda0e9..3e68bdff 100644 --- a/include/amqpcpp/inbuffer.h +++ b/include/amqpcpp/inbuffer.h @@ -47,9 +47,9 @@ class InBuffer /** * Number of bytes already processed - * @var uint32_t + * @var size_t */ - uint32_t _skip = 0; + size_t _skip = 0; public: /**