From 1f757b9ece5e3b032743c6c5ac49e83c3928e3de Mon Sep 17 00:00:00 2001 From: Colin McEwan Date: Mon, 31 May 2021 18:30:10 +0100 Subject: [PATCH] Parenthesise padding length for clarity --- common/JackEngineControl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/JackEngineControl.h b/common/JackEngineControl.h index b9e5b1d7..9d996b3c 100644 --- a/common/JackEngineControl.h +++ b/common/JackEngineControl.h @@ -49,13 +49,13 @@ PRE_PACKED_STRUCTURE struct SERVER_EXPORT JackEngineControl : public JackShmMem { // Padding to align start of JackEngineControl after inherited JackShmMem data - char fPadding1[ sizeof(UInt32) - sizeof(JackShmMem) % sizeof(UInt32) ]; + char fPadding1[ sizeof(UInt32) - (sizeof(JackShmMem) % sizeof(UInt32)) ]; // Timer JackFrameTimer fFrameTimer; // Padding to align fTransport - char fPadding2[ sizeof(UInt32) - sizeof(fFrameTimer) % sizeof(UInt32) ]; + char fPadding2[ sizeof(UInt32) - (sizeof(fFrameTimer) % sizeof(UInt32)) ]; // Shared state JackTransportEngine fTransport;