From 569f058682d885857894a687487aa80421831b79 Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Fri, 14 Jul 2023 17:39:23 -0700 Subject: [PATCH] smpc.h: fix C compatibility --- smpc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smpc.h b/smpc.h index 35cc9b6..057c111 100644 --- a/smpc.h +++ b/smpc.h @@ -63,8 +63,8 @@ struct smpc_reg { }; static_assert((sizeof (struct smpc_reg)) == 0x80); -static_assert((sizeof (smpc_reg().IREG)) == 14); -static_assert((sizeof (smpc_reg().OREG)) == 64); +static_assert((sizeof (((struct smpc_reg){}).IREG)) == 14); +static_assert((sizeof (((struct smpc_reg){}).OREG)) == 64); static_assert((offsetof (struct smpc_reg, IREG[0].val)) == 0x1); static_assert((offsetof (struct smpc_reg, IREG[1].val)) == 0x3); static_assert((offsetof (struct smpc_reg, IREG[6].val)) == 0xd);