From 3b38c66b3d70d1435be4b5bd7052ec8c2800a6b3 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 26 Mar 2009 23:00:53 +0000 Subject: Fix possible precedence problems. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@287 7dcaeef0-15fb-0310-b436-a5af3365683c --- include/libssh/libssh.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 89d8a917..5c73a70c 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -43,7 +43,7 @@ typedef unsigned long long uint64_t; #define SSH_TOSTRING(s) #s /* libssh version macros */ -#define SSH_VERSION_INT(a, b, c) (a << 16 | b << 8 | c) +#define SSH_VERSION_INT(a, b, c) ((a) << 16 | (b) << 8 | (c)) #define SSH_VERSION_DOT(a, b, c) a ##.## b ##.## c #define SSH_VERSION(a, b, c) SSH_VERSION_DOT(a, b, c) -- cgit