1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-18 07:13:36 +02:00

add parentheses around use of a macro argument

This commit is contained in:
jsg
2026-05-05 10:23:06 +00:00
parent f049d1e2dd
commit 9845333fcb
+1 -1
View File
@@ -32,7 +32,7 @@ struct xarray {
#define DEFINE_XARRAY_FLAGS(name, flags) \
struct xarray name = { \
.xa_flags = flags, \
.xa_lock = MUTEX_INITIALIZER((flags & XA_FLAGS_LOCK_IRQ) ? \
.xa_lock = MUTEX_INITIALIZER(((flags) & XA_FLAGS_LOCK_IRQ) ? \
IPL_TTY : IPL_NONE), \
.xa_tree = SPLAY_INITIALIZER(&name.xa_tree) \
}