summaryrefslogtreecommitdiffstats
path: root/generic/tclIOUtil.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-09-13 20:33:58 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-09-13 20:33:58 (GMT)
commitc5943ec574403a010f3065a6d8fdb6d590e68de4 (patch)
tree7bea997dbc3f729938cb44b5bd2350da28735287 /generic/tclIOUtil.c
parentf11320b6b0dd2681bef8470d4fcf7c3b7eb6cbbd (diff)
downloadtcl-c5943ec574403a010f3065a6d8fdb6d590e68de4.zip
tcl-c5943ec574403a010f3065a6d8fdb6d590e68de4.tar.gz
tcl-c5943ec574403a010f3065a6d8fdb6d590e68de4.tar.bz2
Eliminate the use of macro's like LLONG_MAX|MIN, since they assume that Tcl_WideInt equals "long long". Also eliminate uses of Tcl_WideAsLong() and friends, as - often - simple type cases make things more clear.
Diffstat (limited to 'generic/tclIOUtil.c')
-rw-r--r--generic/tclIOUtil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c
index bc8b287..11cc22d 100644
--- a/generic/tclIOUtil.c
+++ b/generic/tclIOUtil.c
@@ -275,8 +275,8 @@ Tcl_Stat(
Tcl_WideInt tmp1, tmp2, tmp3 = 0;
# define OUT_OF_RANGE(x) \
- (((Tcl_WideInt)(x)) < Tcl_LongAsWide(LONG_MIN) || \
- ((Tcl_WideInt)(x)) > Tcl_LongAsWide(LONG_MAX))
+ (((Tcl_WideInt)(x)) < LONG_MIN || \
+ ((Tcl_WideInt)(x)) > LONG_MAX)
# define OUT_OF_URANGE(x) \
(((Tcl_WideUInt)(x)) > ((Tcl_WideUInt)ULONG_MAX))