Fix little C++ header regressions

This commit is contained in:
Martin Kinkelin 2021-02-28 15:56:58 +01:00
parent 879c8ba465
commit c0630840b7
6 changed files with 14 additions and 15 deletions

View file

@ -41,8 +41,8 @@ bool isMagicModule(const ModuleDeclaration *moduleDecl, const Identifier *id) {
return false;
}
if (moduleDecl->packages->length != 1 ||
(*moduleDecl->packages)[0] != Id::ldc) {
if (moduleDecl->packages.length != 1 ||
moduleDecl->packages.ptr[0] != Id::ldc) {
return false;
}
return true;