diff --git a/src/idl_parser.cpp b/src/idl_parser.cpp index 93bdf6c72..37692f981 100644 --- a/src/idl_parser.cpp +++ b/src/idl_parser.cpp @@ -1257,7 +1257,7 @@ CheckedError Parser::ParseVectorDelimiters(uoffset_t &count, F body) { return NoError(); } -static int CompareType(const uint8_t *a, const uint8_t *b, BaseType ftype) { +static bool CompareType(const uint8_t *a, const uint8_t *b, BaseType ftype) { switch (ftype) { #define FLATBUFFERS_TD(ENUM, IDLTYPE, CTYPE, JTYPE, GTYPE, NTYPE, \ PTYPE, RTYPE, KTYPE) \ @@ -1394,8 +1394,9 @@ CheckedError Parser::ParseVector(const Type &type, uoffset_t *ovalue, // stored in memory, so compute the distance between these pointers: ptrdiff_t diff = (b - a) * sizeof(Offset