Skip to content

Commit

Permalink
Fail run test for function sumSignArray [BUG] #464 (#468)
Browse files Browse the repository at this point in the history
- currently the size is stored in bytes: fix regression from `Support bit field in struct #237`
  • Loading branch information
alexey-utkin authored Sep 20, 2022
1 parent 7787136 commit 92a5078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/types/TypesResolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void TypesResolver::resolveEnum(const clang::EnumDecl *EN, const std::string &na
enumInfo.filePath = Paths::getCCJsonFileFullPath(
sourceManager.getFilename(EN->getLocation()).str(), parent->buildRootPath.string());
clang::QualType promotionType = EN->getPromotionType();
enumInfo.size = context.getTypeSize(promotionType) / 8;
enumInfo.size = context.getTypeSize(promotionType);

enumInfo.access = getAccess(EN);

Expand Down

0 comments on commit 92a5078

Please sign in to comment.