summaryrefslogtreecommitdiff
path: root/secblock.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-12-24 16:26:21 -0500
committerJeffrey Walton <noloader@gmail.com>2020-12-24 16:26:21 -0500
commit3b187a0ff77b852e003d666384b873b52e9dbad8 (patch)
treef1aba3f3d7c21368846df361da081ce1992f035f /secblock.h
parentbc02bccce5b911f45e1246d95a06027fb739bef9 (diff)
downloadcryptopp-git-3b187a0ff77b852e003d666384b873b52e9dbad8.tar.gz
Update FixedSizeAllocatorWithCleanup alignment
Diffstat (limited to 'secblock.h')
-rw-r--r--secblock.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/secblock.h b/secblock.h
index 1e228897..cf621df7 100644
--- a/secblock.h
+++ b/secblock.h
@@ -708,13 +708,9 @@ public:
private:
- // The 8-byte alignments follows convention of Linux and Windows.
- // Linux and Windows receives most testing. Duplicate it here for
- // other platforms like AIX and Solaris. AIX and Solaris often use
- // alignments smaller than expected. In fact AIX caught us by
- // surprise with word16 and word32.
+ // T_Align16 is false. Use natural alignment of T.
T* GetAlignedArray() {return m_array;}
- CRYPTOPP_ALIGN_DATA(8) T m_array[S];
+ T m_array[S];
A m_fallbackAllocator;
bool m_allocated;