diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-10-22 11:27:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-22 11:27:18 +0100 |
| commit | 7c2101ea3d0f2dcc0eee433e02c278f9ace45ff8 (patch) | |
| tree | 0bea8abd4f3061fa17c5dbb457e810276b92653d /src/types.cpp | |
| parent | 61424cfbf8d9169d2f68b8c646020114a281c65b (diff) | |
| parent | faa9222fefc831963dd258e3c040333e6d580bb0 (diff) | |
Merge pull request #5812 from Kelimion/data-alignment
Set minimum #load(file, type) alignment to 16 bytes
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp index cb830d08d..bf668e5f6 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -2,6 +2,9 @@ struct Ast; struct Scope; struct Entity; +// NOTE(Jeroen): Minimum alignment for #load(file, <type>) slices +#define MINIMUM_SLICE_ALIGNMENT 16 + enum BasicKind { Basic_Invalid, |