diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-09-13 20:33:58 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-09-13 20:33:58 (GMT) |
commit | c5943ec574403a010f3065a6d8fdb6d590e68de4 (patch) | |
tree | 7bea997dbc3f729938cb44b5bd2350da28735287 /generic/tclIOUtil.c | |
parent | f11320b6b0dd2681bef8470d4fcf7c3b7eb6cbbd (diff) | |
download | tcl-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.c | 4 |
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)) |