From 7f417e339726fd72c7a3223e17c9849d0fff5976 Mon Sep 17 00:00:00 2001 From: Artem Shilkin <89970996+reshilkin@users.noreply.github.com> Date: Fri, 29 Sep 2023 17:39:38 +0300 Subject: [PATCH] added explicit cast (#8066) Co-authored-by: Derek Bailey --- src/idl_parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/idl_parser.cpp b/src/idl_parser.cpp index 2eef2d7bb..c6cbee450 100644 --- a/src/idl_parser.cpp +++ b/src/idl_parser.cpp @@ -2104,7 +2104,7 @@ CheckedError Parser::ParseSingleValue(const std::string *name, Value &e, // Get an indentifier: NAN, INF, or function name like cos/sin/deg. NEXT(); if (token_ != kTokenIdentifier) return Error("constant name expected"); - attribute_.insert(0, 1, sign); + attribute_.insert(size_t(0), size_t(1), sign); } const auto in_type = e.type.base_type; @@ -3425,7 +3425,7 @@ CheckedError Parser::ParseFlexBufferValue(flexbuffers::Builder *builder) { NEXT(); if (token_ != kTokenIdentifier) return Error("floating-point constant expected"); - attribute_.insert(0, 1, sign); + attribute_.insert(size_t(0), size_t(1), sign); ECHECK(ParseFlexBufferNumericConstant(builder)); NEXT(); break;