From c0797b22ae2448bcad082d7af676b2465b60d9cd Mon Sep 17 00:00:00 2001 From: Saman <100295082+enum-class@users.noreply.github.com> Date: Tue, 13 Dec 2022 13:22:24 +0800 Subject: [PATCH] fix clang format plus implicit cast error. (#7704) --- include/flatbuffers/flexbuffers.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/flatbuffers/flexbuffers.h b/include/flatbuffers/flexbuffers.h index 3ab7b5ab6..dd35b87dc 100644 --- a/include/flatbuffers/flexbuffers.h +++ b/include/flatbuffers/flexbuffers.h @@ -385,9 +385,8 @@ class Reference { Reference(const uint8_t *data, uint8_t parent_width, uint8_t packed_type) : data_(data), parent_width_(parent_width), - byte_width_(1 << (packed_type & 3)), - type_(static_cast(packed_type >> 2)) { - } + byte_width_(static_cast(1 << (packed_type & 3))), + type_(static_cast(packed_type >> 2)) {} Type GetType() const { return type_; }