From 7d7afbb2da28127f9d3e1585f4015a3eb535deb3 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Wed, 26 Jul 2023 18:00:39 +0300 Subject: [PATCH] Changes due to metagen API changes --- tpl/macro.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tpl/macro.twig b/tpl/macro.twig index 34a5da4..164bf85 100644 --- a/tpl/macro.twig +++ b/tpl/macro.twig @@ -72,10 +72,10 @@ public {{_self.struct_type(o)}} {{o.name}} {{_self.base_struct_class(o)}} return {{fields_count(o)}}; } - public {{_self.override(o)}} int getWritableFieldsCount() + public {{_self.override(o)}} int getDirtyFieldsCount() { {%~ if has_token(o, 'bitfields') ~%} - return fields_mask.GetDirtyFieldsCount() + MetaSync.MASK_HEADER_FIELDS_COUNT; + return fields_mask.GetDirtyFieldsCount(); {% else %} return getFieldsCount(); {%- endif ~%}