summaryrefslogtreecommitdiffstats
path: root/generic/tclTest.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/tclTest.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/tclTest.c')
-rw-r--r--generic/tclTest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c
index 48b4761..18bfc1b 100644
--- a/generic/tclTest.c
+++ b/generic/tclTest.c
@@ -2832,7 +2832,7 @@ TestlinkCmd(
static int intVar = 43;
static int boolVar = 4;
static double realVar = 1.23;
- static Tcl_WideInt wideVar = Tcl_LongAsWide(79);
+ static Tcl_WideInt wideVar = 79;
static char *stringVar = NULL;
static char charVar = '@';
static unsigned char ucharVar = 130;
@@ -2842,7 +2842,7 @@ TestlinkCmd(
static long longVar = 123456789L;
static unsigned long ulongVar = 3456789012UL;
static float floatVar = 4.5;
- static Tcl_WideUInt uwideVar = (Tcl_WideUInt) Tcl_LongAsWide(123);
+ static Tcl_WideUInt uwideVar = 123;
static int created = 0;
char buffer[2*TCL_DOUBLE_SPACE];
int writable, flag;