summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2025-05-22 09:25:06 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2025-05-22 09:25:06 (GMT)
commitaef01f53945ad861aaa46fa9c7f10de49ee6fa5e (patch)
tree4bac83316fb2a9a54a6fd54357443e1cfdd023ff
parenta1e0baea6bd15256b2a7b9abb5c2945e34811a19 (diff)
downloadtcl-aef01f53945ad861aaa46fa9c7f10de49ee6fa5e.zip
tcl-aef01f53945ad861aaa46fa9c7f10de49ee6fa5e.tar.gz
tcl-aef01f53945ad861aaa46fa9c7f10de49ee6fa5e.tar.bz2
Minor optimization: Make sure that TclIsSpaceProcM() doesn't call TclIsSpaceProc() for 'negative' byte values
-rw-r--r--generic/tclInt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 98cab9b..75608ae 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -3705,7 +3705,7 @@ MODULE_SCOPE void TclZipfsFinalize(void);
MODULE_SCOPE int TclIsSpaceProc(int byte);
#define TclIsSpaceProcM(byte) \
- (((byte) > 0x20) ? 0 : TclIsSpaceProc(byte))
+ (((unsigned)(byte) > 0x20) ? 0 : TclIsSpaceProc(byte))
/*
*----------------------------------------------------------------