From: Jörn Nettingsmeier Date: Fri, 15 Feb 2019 18:06:36 +0000 (+0000) Subject: Add parentheses around macro to avoid breakage with stronger-binding operators. X-Git-Tag: 3.3RC0~52^2~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=120e95fc662cb316a8c5853c45f18e6ae2a4733e;p=thirdparty%2Fshairport-sync.git Add parentheses around macro to avoid breakage with stronger-binding operators. --- diff --git a/audio_jack.c b/audio_jack.c index 3d3fadda..667ace96 100644 --- a/audio_jack.c +++ b/audio_jack.c @@ -41,7 +41,7 @@ enum ift_type { // Two-channel, 16bit audio: static const int bytes_per_frame = 4; // Four seconds buffer -- should be plenty -#define buffer_size 44100 * 4 * bytes_per_frame +#define buffer_size (44100 * 4 * bytes_per_frame) static pthread_mutex_t buffer_mutex = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t client_mutex = PTHREAD_MUTEX_INITIALIZER;