mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 20:15:34 +00:00
fixed comparator for native_inline (#7076)
* fixed comparator for native_inline * added native_inline data * updated more tests for the new field * more fixes
This commit is contained in:
@@ -2025,7 +2025,7 @@ class CppGenerator : public BaseGenerator {
|
||||
field.value.type.element != BASE_TYPE_UTYPE)) {
|
||||
if (!compare_op.empty()) { compare_op += " &&\n "; }
|
||||
auto accessor = Name(field) + accessSuffix;
|
||||
if (struct_def.fixed ||
|
||||
if (struct_def.fixed || field.native_inline ||
|
||||
field.value.type.base_type != BASE_TYPE_STRUCT) {
|
||||
compare_op += "(lhs." + accessor + " == rhs." + accessor + ")";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user