Commit ae1763e2 authored by dyu's avatar dyu Committed by Wouter van Oortmerssen

cast literal to csize to fix error

Change-Id: Ieddc3c5cd4f7c97a9739ae3046b8a1b328180ae1
parent aa46f0e4
...@@ -137,7 +137,7 @@ void AccessFlatBufferTest(const std::string &flatbuf) { ...@@ -137,7 +137,7 @@ void AccessFlatBufferTest(const std::string &flatbuf) {
TEST_EQ(pos->test3().b(), 20); TEST_EQ(pos->test3().b(), 20);
auto inventory = monster->inventory(); 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); TEST_NOTNULL(inventory);
unsigned char inv_data[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; unsigned char inv_data[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
for (auto it = inventory->begin(); it != inventory->end(); ++it) for (auto it = inventory->begin(); it != inventory->end(); ++it)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment