summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-09-29 07:51:16 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-09-29 07:51:16 (GMT)
commitcf3494dfd17c878ba1a8b121d647ece41fdba358 (patch)
tree901bfa87ada40db064f0c0f9cbd5b7e144c24252 /generic/tclInt.h
parent85b8b933f9f8fc0f12a1a898760de37e956f3000 (diff)
parente067642e2b6d96c45ad9dc6e5afd52c3ae7dd150 (diff)
downloadtcl-cf3494dfd17c878ba1a8b121d647ece41fdba358.zip
tcl-cf3494dfd17c878ba1a8b121d647ece41fdba358.tar.gz
tcl-cf3494dfd17c878ba1a8b121d647ece41fdba358.tar.bz2
Merge 9.0. Make stderr channel -profile replace
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r--generic/tclInt.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 900c0eb..fa9bb26 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -2945,10 +2945,10 @@ typedef struct ProcessGlobalValue {
#define ENCODING_PROFILE_MASK 0xFF000000
#define ENCODING_PROFILE_GET(flags_) ((flags_) & ENCODING_PROFILE_MASK)
-#define ENCODING_PROFILE_SET(flags_, profile_) \
- do { \
- (flags_) &= ~ENCODING_PROFILE_MASK; \
- (flags_) |= profile_; \
+#define ENCODING_PROFILE_SET(flags_, profile_) \
+ do { \
+ (flags_) &= ~ENCODING_PROFILE_MASK; \
+ (flags_) |= ((profile_) & ENCODING_PROFILE_MASK);\
} while (0)
/*