diff options
| author | dgp <dgp@users.sourceforge.net> | 2018-02-22 18:57:20 (GMT) |
|---|---|---|
| committer | dgp <dgp@users.sourceforge.net> | 2018-02-22 18:57:20 (GMT) |
| commit | 455b61dce391118995a7762609a6f42035cf43a4 (patch) | |
| tree | 5b325e448ca007110a130839618488fd73a6aebc /generic/tclTest.c | |
| parent | dda81853f3711f64164099578a14632f549f086a (diff) | |
| download | tcl-455b61dce391118995a7762609a6f42035cf43a4.zip tcl-455b61dce391118995a7762609a6f42035cf43a4.tar.gz tcl-455b61dce391118995a7762609a6f42035cf43a4.tar.bz2 | |
[89dfecb6b7] Make thread IDs in testing commands consistent.
Diffstat (limited to 'generic/tclTest.c')
| -rw-r--r-- | generic/tclTest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c index 8a59b83..45cca5a 100644 --- a/generic/tclTest.c +++ b/generic/tclTest.c @@ -5234,7 +5234,7 @@ TestmainthreadCmd( const char **argv) /* Argument strings. */ { if (argc == 1) { - Tcl_Obj *idObj = Tcl_NewLongObj((long)(size_t)Tcl_GetCurrentThread()); + Tcl_Obj *idObj = Tcl_NewWideIntObj((Tcl_WideInt)(size_t)Tcl_GetCurrentThread()); Tcl_SetObjResult(interp, idObj); return TCL_OK; @@ -5631,8 +5631,8 @@ TestChannelCmd( return TCL_ERROR; } - TclFormatInt(buf, (size_t) Tcl_GetChannelThread(chan)); - Tcl_AppendResult(interp, buf, NULL); + Tcl_SetObjResult(interp, Tcl_NewWideIntObj( + (Tcl_WideInt) (size_t) Tcl_GetChannelThread(chan))); return TCL_OK; } |
