From 7d0393338cdb785f11d576908f95af7bc353913b Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 27 Mar 2009 00:00:49 +0100 Subject: [PATCH] Fix possible precedence problems. --- src/csync.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/csync.h b/src/csync.h index 28295f39c..fd2b6f824 100644 --- a/src/csync.h +++ b/src/csync.h @@ -41,7 +41,7 @@ extern "C" { #define CSYNC_TOSTRING(s) #s /* csync version macros */ -#define CSYNC_VERSION_INT(a, b, c) (a << 16 | b << 8 | c) +#define CSYNC_VERSION_INT(a, b, c) ((a) << 16 | (b) << 8 | (c)) #define CSYNC_VERSION_DOT(a, b, c) a ##.## b ##.## c #define CSYNC_VERSION(a, b, c) CSYNC_VERSION_DOT(a, b, c)