From 120e95fc662cb316a8c5853c45f18e6ae2a4733e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Nettingsmeier?= Date: Fri, 15 Feb 2019 18:06:36 +0000 Subject: [PATCH] Add parentheses around macro to avoid breakage with stronger-binding operators. --- audio_jack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;