Skip to content

Commit

Permalink
Fix regression in struct field naming
Browse files Browse the repository at this point in the history
  • Loading branch information
yegord committed Apr 13, 2021
1 parent e0ee03e commit acac978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nc/core/ir/cgen/CodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<likec::MemberDeclaration>(
QString("0x%1").arg(offsetValue, 0, 16), makeType(offsetType->pointee())));
QString("f%1").arg(offsetValue, 0, 16), makeType(offsetType->pointee())));
}
}

Expand Down

0 comments on commit acac978

Please sign in to comment.