diff --git a/oi/type_graph/ClangTypeParser.cpp b/oi/type_graph/ClangTypeParser.cpp index 222c9e7..9c406b8 100644 --- a/oi/type_graph/ClangTypeParser.cpp +++ b/oi/type_graph/ClangTypeParser.cpp @@ -335,7 +335,8 @@ void ClangTypeParser::enumerateClassParents(const clang::RecordType& ty, if (baseCxxDecl == nullptr) continue; - auto offset = layout.getBaseClassOffset(baseCxxDecl).getQuantity(); + auto offset = + layout.getBaseClassOffset(baseCxxDecl).getQuantity() * CHAR_BIT; auto& ptype = enumerateType(*baseType); parents.emplace_back(Parent{ptype, static_cast(offset)}); }