]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Add parentheses around macro to avoid breakage with stronger-binding operators.
authorJörn Nettingsmeier <nettings@luchtbeweging.nl>
Fri, 15 Feb 2019 18:06:36 +0000 (18:06 +0000)
committerJörn Nettingsmeier <nettings@luchtbeweging.nl>
Fri, 15 Feb 2019 18:06:36 +0000 (18:06 +0000)
audio_jack.c

index 3d3faddadc03ef398c8df534191df345bc29ec85..667ace96cbb6a68655657fda602125015b7dee8e 100644 (file)
@@ -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;