Skip to content

Commit 92a5078

Browse files
authored
Fail run test for function sumSignArray [BUG] #464 (#468)
- currently the size is stored in bytes: fix regression from `Support bit field in struct #237`
1 parent 7787136 commit 92a5078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/types/TypesResolver.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ void TypesResolver::resolveEnum(const clang::EnumDecl *EN, const std::string &na
224224
enumInfo.filePath = Paths::getCCJsonFileFullPath(
225225
sourceManager.getFilename(EN->getLocation()).str(), parent->buildRootPath.string());
226226
clang::QualType promotionType = EN->getPromotionType();
227-
enumInfo.size = context.getTypeSize(promotionType) / 8;
227+
enumInfo.size = context.getTypeSize(promotionType);
228228

229229
enumInfo.access = getAccess(EN);
230230

0 commit comments

Comments
 (0)