mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-10 15:16:28 +00:00
cast literal to csize to fix error
Change-Id: Ieddc3c5cd4f7c97a9739ae3046b8a1b328180ae1
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
aa46f0e4c2
commit
ae1763e226
@@ -137,7 +137,7 @@ void AccessFlatBufferTest(const std::string &flatbuf) {
|
||||
TEST_EQ(pos->test3().b(), 20);
|
||||
|
||||
auto inventory = monster->inventory();
|
||||
TEST_EQ(VectorLength(inventory), 10); // Works even if inventory is null.
|
||||
TEST_EQ(VectorLength(inventory), 10UL); // Works even if inventory is null.
|
||||
TEST_NOTNULL(inventory);
|
||||
unsigned char inv_data[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
|
||||
for (auto it = inventory->begin(); it != inventory->end(); ++it)
|
||||
|
||||
Reference in New Issue
Block a user