projects
/
platform
/
upstream
/
flatbuffers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6beb9f4
)
add namespace prefix in FLATBUFFERS_MAX_BUFFER_SIZE (#5629)
author
FujiZ
<i@fujiz.me>
Mon, 18 Nov 2019 20:02:14 +0000
(
04:02
+0800)
committer
Wouter van Oortmerssen
<aardappel@gmail.com>
Mon, 18 Nov 2019 20:02:14 +0000
(12:02 -0800)
include/flatbuffers/base.h
patch
|
blob
|
history
diff --git
a/include/flatbuffers/base.h
b/include/flatbuffers/base.h
index
92c47a3
..
86ecf23
100644
(file)
--- 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