fix open source build failure by switching C's _Alignof for C++'s alignof

PiperOrigin-RevId: 568400917
Change-Id: I90eff5e149d491f181370d72e43fdee9d4a3a20e
This commit is contained in:
Matthew Bennice
2023-09-25 20:43:17 -07:00
committed by Copybara-Service
parent ff4158efff
commit 0dfeedb320
+1 -1
View File
@@ -784,7 +784,7 @@ void* TestFunction(void* args) {
test_args->stack_output = test_ints[0];
int* test_arena_ints =
(int*)mj_arenaAllocByte(test_args->d, sizeof(int) * 10, _Alignof(int));
(int*)mj_arenaAllocByte(test_args->d, sizeof(int) * 10, alignof(int));
test_arena_ints[0] = test_args->input;
test_args->arena_output = test_arena_ints[0];