changeset 364:08d5f6fe348e gcc-4.3-cleanups

More parentheses in ALIGN_FOO_UP() macros. (And they say Lisp is hard to read)
author mas01cr
date Wed, 12 Nov 2008 14:01:09 +0000
parents 64d5de8b1a68
children 6ff688bac7b7
files audioDB.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/audioDB.h	Wed Nov 12 14:01:06 2008 +0000
+++ b/audioDB.h	Wed Nov 12 14:01:09 2008 +0000
@@ -133,10 +133,10 @@
 // Macros
 #define O2_ACTION(a) (strcmp(command,a)==0)
 
-#define ALIGN_UP(x,w) ((x) + ((1<<w)-1) & ~((1<<w)-1))
+#define ALIGN_UP(x,w) (((x) + ((1<<w)-1)) & ~((1<<w)-1))
 #define ALIGN_DOWN(x,w) ((x) & ~((1<<w)-1))
 
-#define ALIGN_PAGE_UP(x) ((x) + (getpagesize()-1) & ~(getpagesize()-1))
+#define ALIGN_PAGE_UP(x) (((x) + (getpagesize()-1)) & ~(getpagesize()-1))
 #define ALIGN_PAGE_DOWN(x) ((x) & ~(getpagesize()-1))
 
 #define ENSURE_STRING(x) ((x) ? (x) : "")