Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Add brackets arround macro arguments to avoid nasty ...
details: https://anonhg.NetBSD.org/src/rev/3ccfb6342401
branches: trunk
changeset: 773052:3ccfb6342401
user: tron <tron%NetBSD.org@localhost>
date: Wed Jan 25 19:47:18 2012 +0000
description:
Add brackets arround macro arguments to avoid nasty problem caused by
macro expansion.
diffstat:
sys/sys/param.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 9d32213cd9a1 -r 3ccfb6342401 sys/sys/param.h
--- a/sys/sys/param.h Wed Jan 25 19:39:07 2012 +0000
+++ b/sys/sys/param.h Wed Jan 25 19:47:18 2012 +0000
@@ -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) */
Home |
Main Index |
Thread Index |
Old Index