mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-26 04:12:40 +00:00
fix clang format plus implicit cast error. (#7704)
This commit is contained in:
@@ -385,9 +385,8 @@ class Reference {
|
|||||||
Reference(const uint8_t *data, uint8_t parent_width, uint8_t packed_type)
|
Reference(const uint8_t *data, uint8_t parent_width, uint8_t packed_type)
|
||||||
: data_(data),
|
: data_(data),
|
||||||
parent_width_(parent_width),
|
parent_width_(parent_width),
|
||||||
byte_width_(1 << (packed_type & 3)),
|
byte_width_(static_cast<uint8_t>(1 << (packed_type & 3))),
|
||||||
type_(static_cast<Type>(packed_type >> 2)) {
|
type_(static_cast<Type>(packed_type >> 2)) {}
|
||||||
}
|
|
||||||
|
|
||||||
Type GetType() const { return type_; }
|
Type GetType() const { return type_; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user