summaryrefslogtreecommitdiff
path: root/ZAPD/ZVector.cpp
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2021-09-29 14:58:42 -0300
committerGitHub <noreply@github.com>2021-09-29 13:58:42 -0400
commit2e7e4c33db92944019cfd8c806054f703629c122 (patch)
tree77ad974baa8df0442b9bb165e143b5bffcfcf16d /ZAPD/ZVector.cpp
parentcac62bff64235ec4be71b79443afaa135d739a92 (diff)
Remove `DeclarationPadding` and `DeclarationAlignment::None` (#186)
* Nuke DeclarationPadding * Remove DeclarationAlignment::None * Fix AddDeclaration memory leaks * Run formatter * Remove extra AddDeclarationPlaceholder * Revert "Remove extra AddDeclarationPlaceholder" This reverts commit 7a5d6a19d80bb246e0a6c8fde009b2a00a84ef96.
Diffstat (limited to 'ZAPD/ZVector.cpp')
-rw-r--r--ZAPD/ZVector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ZAPD/ZVector.cpp b/ZAPD/ZVector.cpp
index 0b7b9f3..69171a8 100644
--- a/ZAPD/ZVector.cpp
+++ b/ZAPD/ZVector.cpp
@@ -95,7 +95,7 @@ std::string ZVector::GetBodySourceCode() const
std::string ZVector::GetSourceOutputCode([[maybe_unused]] const std::string& prefix)
{
if (parent != nullptr)
- parent->AddDeclaration(rawDataIndex, DeclarationAlignment::None, GetRawDataSize(),
+ parent->AddDeclaration(rawDataIndex, DeclarationAlignment::Align4, GetRawDataSize(),
GetSourceTypeName(), GetName(), GetBodySourceCode());
return "";