Require parentheses for #align(N)

This commit is contained in:
gingerBill committed 2023-08-15 14:55:02 +01:00
1 parent 098d1d2b5e
commit 2cc22d118d
17 files changed
+63 -48

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ CAS :: intrinsics.atomic_compare_exchange_strong
// NOTE(tetra): Aligned here because of core/unix/pthread_linux.odin/pthread_t.
// Also see core/sys/darwin/mach_darwin.odin/semaphore_t.
Thread_Os_Specific :: struct #align 16 {
Thread_Os_Specific :: struct #align(16) {
unix_thread: unix.pthread_t, // NOTE: very large on Darwin, small on Linux.
cond: sync.Cond,
mutex: sync.Mutex,