summaryrefslogtreecommitdiffstats
path: root/generic/tclPort.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-09-22 13:18:49 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-09-22 13:18:49 (GMT)
commit9f9a9e291d8ef1d9d6183a445c9fe19374261c4d (patch)
tree2ed51714da9855868ed683123f2def8ed24d6c59 /generic/tclPort.h
parent31b9d1f712fb47f0376a53db5d67d5c2c844d0ce (diff)
downloadtcl-9f9a9e291d8ef1d9d6183a445c9fe19374261c4d.zip
tcl-9f9a9e291d8ef1d9d6183a445c9fe19374261c4d.tar.gz
tcl-9f9a9e291d8ef1d9d6183a445c9fe19374261c4d.tar.bz2
Change ULLONG_MAX -> UWIDE_MAX, LLONG_MAX -> WIDE_MAX and LLONG_MIN -> WIDE_MIN everywhere, because not all platforms equal Tcl_WideInt type as equal to "long long". This should fix test-cases on platforms where Tcl_WideInt != long long, and have no effect on 'normal' platforms
Diffstat (limited to 'generic/tclPort.h')
-rw-r--r--generic/tclPort.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclPort.h b/generic/tclPort.h
index 33c0db6..d3f6233 100644
--- a/generic/tclPort.h
+++ b/generic/tclPort.h
@@ -24,7 +24,8 @@
#endif
#include "tcl.h"
-#define WIDE_MAX ((Tcl_WideInt)((~(Tcl_WideUInt)0) >> 1))
+#define UWIDE_MAX ((Tcl_WideUInt)-1)
+#define WIDE_MAX ((Tcl_WideInt)(UWIDE_MAX >> 1))
#define WIDE_MIN ((Tcl_WideInt)((Tcl_WideUInt)WIDE_MAX+1))
#endif /* _TCLPORT */