From 22b234f930cc50671c9b3005f47eee7cf4560ba6 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Wed, 27 Nov 2019 08:00:26 -0800 Subject: [PATCH] Added alignment --- BeefLibs/corlib/src/System.bf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BeefLibs/corlib/src/System.bf b/BeefLibs/corlib/src/System.bf index 8ccead36..cc65d510 100644 --- a/BeefLibs/corlib/src/System.bf +++ b/BeefLibs/corlib/src/System.bf @@ -208,11 +208,11 @@ static void* data; if (size <= 128) { - data = scope:mixin uint8[size]* { ? }; + data = scope:mixin [Align(align)] uint8[size]* { ? }; } else { - data = new uint8[size]* { ? }; + data = new [Align(align)] uint8[size]* { ? }; defer:mixin delete data; } data