summaryrefslogtreecommitdiffstats
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)
commit9bf53c41935b068bea5851e66be354f4ba861a44 (patch)
treede781957c8d3bb3dda271ab5cfb125cba33376be
parent52482ea1e528751dcb61e736532dcc86469ccbc3 (diff)
downloadtcl-9bf53c41935b068bea5851e66be354f4ba861a44.zip
tcl-9bf53c41935b068bea5851e66be354f4ba861a44.tar.gz
tcl-9bf53c41935b068bea5851e66be354f4ba861a44.tar.bz2
Make trunk compile on MSVC (problem was: warning C4554: '&' : check operator precedence for possible error; use parentheses to clarify precedence)
-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)
/*
*----------------------------------------------------------------------