summaryrefslogtreecommitdiffstats
path: root/win/tclWinChan.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-04-29 14:41:20 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-04-29 14:41:20 (GMT)
commit90ffbb41701e9550ed98e8454d100d5a48531b33 (patch)
treede781957c8d3bb3dda271ab5cfb125cba33376be /win/tclWinChan.c
parentadfd841d9dd2ed9ab1c1e3a246e649247d3bdece (diff)
downloadtcl-90ffbb41701e9550ed98e8454d100d5a48531b33.zip
tcl-90ffbb41701e9550ed98e8454d100d5a48531b33.tar.gz
tcl-90ffbb41701e9550ed98e8454d100d5a48531b33.tar.bz2
Make trunk compile on MSVC (problem was: warning C4554: '&' : check operator precedence for possible error; use parentheses to clarify precedence)
Diffstat (limited to 'win/tclWinChan.c')
-rw-r--r--win/tclWinChan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c
index 010621c..2898db0 100644
--- a/win/tclWinChan.c
+++ b/win/tclWinChan.c
@@ -128,7 +128,7 @@ static const Tcl_ChannelType fileChannelType = {
#define SET_FLAG(var, flag) ((var) |= (flag))
#define CLEAR_FLAG(var, flag) ((var) &= ~(flag))
-#define TEST_FLAG(value, flag) ((value) & (flag) != 0)
+#define TEST_FLAG(value, flag) (((value) & (flag)) != 0)
/*
*----------------------------------------------------------------------