diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2006-09-22 14:48:51 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2006-09-22 14:48:51 (GMT) |
commit | ffcc33c7062c747cb8341a4b2405e8043dd02733 (patch) | |
tree | 8d11c56a35a02dd5dd649775efda77323650ac0f | |
parent | e071f14d95c6a3e37911f58a3ca71da73b6a72d2 (diff) | |
download | tcl-ffcc33c7062c747cb8341a4b2405e8043dd02733.zip tcl-ffcc33c7062c747cb8341a4b2405e8043dd02733.tar.gz tcl-ffcc33c7062c747cb8341a4b2405e8043dd02733.tar.bz2 |
Fix [Bug 1562528]
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | generic/tclThreadTest.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2006-09-22 Donal K. Fellows <donal.k.fellows@man.ac.uk> + + * 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 <andreask@activestate.com> * 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; } |