From ff3781dc2d541c68122ec33c96ddf7032fcca27e Mon Sep 17 00:00:00 2001 From: FujiZ Date: Tue, 19 Nov 2019 04:02:14 +0800 Subject: [PATCH] add namespace prefix in FLATBUFFERS_MAX_BUFFER_SIZE (#5629) --- include/flatbuffers/base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/flatbuffers/base.h b/include/flatbuffers/base.h index 92c47a327..86ecf2386 100644 --- a/include/flatbuffers/base.h +++ b/include/flatbuffers/base.h @@ -296,7 +296,7 @@ typedef uint16_t voffset_t; typedef uintmax_t largest_scalar_t; // In 32bits, this evaluates to 2GB - 1 -#define FLATBUFFERS_MAX_BUFFER_SIZE ((1ULL << (sizeof(soffset_t) * 8 - 1)) - 1) +#define FLATBUFFERS_MAX_BUFFER_SIZE ((1ULL << (sizeof(::flatbuffers::soffset_t) * 8 - 1)) - 1) // We support aligning the contents of buffers up to this size. #define FLATBUFFERS_MAX_ALIGNMENT 16