diff --git a/src/idl_parser.cpp b/src/idl_parser.cpp index bdda28ec4..28ff3ec05 100644 --- a/src/idl_parser.cpp +++ b/src/idl_parser.cpp @@ -1336,7 +1336,7 @@ CheckedError Parser::ParseVector(const Type &type, uoffset_t *ovalue, break; } } - assert(key); + FLATBUFFERS_ASSERT(key); // Now sort it. // We can't use std::sort because for structs the size is not known at // compile time, and for tables our iterators dereference offsets, so can't @@ -1386,7 +1386,7 @@ CheckedError Parser::ParseVector(const Type &type, uoffset_t *ovalue, // These are serialized offsets, so are relative where they are // stored in memory, so compute the distance between these pointers: ptrdiff_t diff = (b - a) * sizeof(Offset