Module Name: src
Committed By: tron
Date: Wed Jan 25 19:47:19 UTC 2012
Modified Files:
src/sys/sys: param.h
Log Message:
Add brackets arround macro arguments to avoid nasty problem caused by
macro expansion.
To generate a diff of this commit:
cvs rdiff -u -r1.402 -r1.403 src/sys/sys/param.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/param.h
diff -u src/sys/sys/param.h:1.402 src/sys/sys/param.h:1.403
--- src/sys/sys/param.h:1.402 Wed Jan 25 19:39:07 2012
+++ src/sys/sys/param.h Wed Jan 25 19:47:18 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.402 2012/01/25 19:39:07 christos Exp $ */
+/* $NetBSD: param.h,v 1.403 2012/01/25 19:47:18 tron Exp $ */
/*-
* Copyright (c) 1982, 1986, 1989, 1993
@@ -224,7 +224,7 @@
#define STACK_ALLOC(sp, _size) (((char *)(void *)(sp)) - (_size))
#define STACK_MAX(p, _size) ((char *)(void *)(p))
#endif
-#define STACK_LEN_ALIGN(len, bytes) (((len) + bytes) & ~bytes)
+#define STACK_LEN_ALIGN(len, bytes) (((len) + (bytes)) & ~(bytes))
#endif /* defined(_KERNEL) || defined(__EXPOSE_STACK) */