From 4b02f9c1e0aa02fd8276e72aeba6f00d0018be34 Mon Sep 17 00:00:00 2001 From: dkf Date: Fri, 22 Sep 2006 14:48:51 +0000 Subject: Fix [Bug 1562528] FossilOrigin-Name: 1f72f1dc049e51205cf3f66fd1765a8fe80025c2 --- ChangeLog | 6 ++++++ generic/tclThreadTest.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 147636d..889e331 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-09-22 Donal K. Fellows + + * generic/tclThreadTest.c (TclCreateThread): Use NULL instead of 0 as + end-of-strings marker to Tcl_AppendResult; the difference matters on + 64-bit machines. [Bug 1562528] + 2006-09-21 Andreas Kupries * generic/tcl.decls: Implemented TIP #268, conditionally. diff --git a/generic/tclThreadTest.c b/generic/tclThreadTest.c index f551746..15a4d95 100644 --- a/generic/tclThreadTest.c +++ b/generic/tclThreadTest.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclThreadTest.c,v 1.16.2.1 2004/10/26 20:14:29 dgp Exp $ + * RCS: @(#) $Id: tclThreadTest.c,v 1.16.2.2 2006/09/22 14:48:52 dkf Exp $ */ #include "tclInt.h" @@ -421,7 +421,7 @@ TclCreateThread(interp, script, joinable) if (Tcl_CreateThread(&id, NewTestThread, (ClientData) &ctrl, TCL_THREAD_STACK_DEFAULT, joinable) != TCL_OK) { Tcl_MutexUnlock(&threadMutex); - Tcl_AppendResult(interp,"can't create a new thread",0); + Tcl_AppendResult(interp,"can't create a new thread",NULL); ckfree((void*)ctrl.script); return TCL_ERROR; } -- cgit v0.12