summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Bailey <derekbailey@google.com>2023-05-11 09:34:50 -0700
committerDerek Bailey <derekbailey@google.com>2023-05-11 09:34:50 -0700
commit9fc153a8f88890972015492b1529bdd057ba16b6 (patch)
treeac2bfebf5c94ba6d066dbf6bfe40ab814a78c79f
parentc2bf8106389e3b1595a24fbac324ad02952c009b (diff)
downloadflatbuffers-9fc153a8f88890972015492b1529bdd057ba16b6.tar.gz
flatbuffers-9fc153a8f88890972015492b1529bdd057ba16b6.tar.bz2
flatbuffers-9fc153a8f88890972015492b1529bdd057ba16b6.zip
remove large buffer creation in test to speed it up
-rw-r--r--tests/64bit/offset64_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/64bit/offset64_test.cpp b/tests/64bit/offset64_test.cpp
index 8e91fbea..49f37872 100644
--- a/tests/64bit/offset64_test.cpp
+++ b/tests/64bit/offset64_test.cpp
@@ -23,7 +23,8 @@ void Offset64Test() {
FlatBufferBuilder64 builder;
const size_t far_vector_size = 1LL << 2;
- const size_t big_vector_size = 1LL << 31;
+ // Make a large number if wanting to test a real large buffer.
+ const size_t big_vector_size = 1LL << 2;
{
// First create the vectors that will be copied to the buffer.