summaryrefslogtreecommitdiffstats
path: root/generic/tclTest.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-12-01 09:58:51 (GMT)
committernijtmans <nijtmans>2010-12-01 09:58:51 (GMT)
commitb6d1219a7a9fcdb49db66a4217f34bd79ba40bba (patch)
treeff3e45f716f97fd6829df5f3c3f6ff70710f2771 /generic/tclTest.c
parent79fc377e16fe1fb9074418c7fa5a4e06b9da28f4 (diff)
downloadtcl-b6d1219a7a9fcdb49db66a4217f34bd79ba40bba.zip
tcl-b6d1219a7a9fcdb49db66a4217f34bd79ba40bba.tar.gz
tcl-b6d1219a7a9fcdb49db66a4217f34bd79ba40bba.tar.bz2
fix gcc 64-bit warnings: cast from pointer to integer of different size
fix gcc(-4.5.2) warning: 'static' is not at beginning of declaration
Diffstat (limited to 'generic/tclTest.c')
-rw-r--r--generic/tclTest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c
index 80dbbae..81ba0fb 100644
--- a/generic/tclTest.c
+++ b/generic/tclTest.c
@@ -14,7 +14,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclTest.c,v 1.155 2010/11/28 23:20:11 kennykb Exp $
+ * RCS: @(#) $Id: tclTest.c,v 1.156 2010/12/01 09:58:52 nijtmans Exp $
*/
#include <math.h>
@@ -5157,7 +5157,7 @@ TestmainthreadCmd(
const char **argv) /* Argument strings. */
{
if (argc == 1) {
- Tcl_Obj *idObj = Tcl_NewLongObj((long) Tcl_GetCurrentThread());
+ Tcl_Obj *idObj = Tcl_NewLongObj((long)(size_t)Tcl_GetCurrentThread());
Tcl_SetObjResult(interp, idObj);
return TCL_OK;
@@ -5554,7 +5554,7 @@ TestChannelCmd(
return TCL_ERROR;
}
- TclFormatInt(buf, (long) Tcl_GetChannelThread(chan));
+ TclFormatInt(buf, (size_t) Tcl_GetChannelThread(chan));
Tcl_AppendResult(interp, buf, NULL);
return TCL_OK;
}