From 92a5078c96e287605e856b43c734c556d92e4729 Mon Sep 17 00:00:00 2001 From: Alexey Utkin Date: Tue, 20 Sep 2022 09:04:58 +0300 Subject: [PATCH] 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` --- server/src/types/TypesResolver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/types/TypesResolver.cpp b/server/src/types/TypesResolver.cpp index fcacabe3..dc6eb459 100644 --- a/server/src/types/TypesResolver.cpp +++ b/server/src/types/TypesResolver.cpp @@ -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);