From acac978f7c6970584077dd6ab8b3747a35b721a2 Mon Sep 17 00:00:00 2001 From: Yegor Derevenets Date: Tue, 13 Apr 2021 11:25:34 +0200 Subject: [PATCH] Fix regression in struct field naming --- src/nc/core/ir/cgen/CodeGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nc/core/ir/cgen/CodeGenerator.cpp b/src/nc/core/ir/cgen/CodeGenerator.cpp index cae523dde..e7efdce31 100644 --- a/src/nc/core/ir/cgen/CodeGenerator.cpp +++ b/src/nc/core/ir/cgen/CodeGenerator.cpp @@ -150,7 +150,7 @@ const likec::StructType *CodeGenerator::makeStructuralType(const types::Type *ty tree_.makeArrayType(tree_.makeIntegerType(CHAR_BIT, false), offsetValue - type->size() / CHAR_BIT))); } typeDeclaration->type()->addMember(std::make_unique( - QString("0x%1").arg(offsetValue, 0, 16), makeType(offsetType->pointee()))); + QString("f%1").arg(offsetValue, 0, 16), makeType(offsetType->pointee()))); } }