summaryrefslogtreecommitdiffstats
path: root/generic/tclPreserve.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2011-01-18 08:43:53 (GMT)
committernijtmans <nijtmans>2011-01-18 08:43:53 (GMT)
commit57ab68714417969c9ff520967d92a7e3dde7a66d (patch)
treeaf236c9f19fe93b1abae154034101646497a88d5 /generic/tclPreserve.c
parent1dd5fbf51a42ff6449ede1d172e8f71952936965 (diff)
downloadtcl-57ab68714417969c9ff520967d92a7e3dde7a66d.zip
tcl-57ab68714417969c9ff520967d92a7e3dde7a66d.tar.gz
tcl-57ab68714417969c9ff520967d92a7e3dde7a66d.tar.bz2
Various mismatches between Tcl_Panic format string and its arguments,
discovered thanks to [Bug 3159920]
Diffstat (limited to 'generic/tclPreserve.c')
-rw-r--r--generic/tclPreserve.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclPreserve.c b/generic/tclPreserve.c
index f90e4bc..427ba77 100644
--- a/generic/tclPreserve.c
+++ b/generic/tclPreserve.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: tclPreserve.c,v 1.12 2009/01/09 11:21:46 dkf Exp $
+ * RCS: @(#) $Id: tclPreserve.c,v 1.13 2011/01/18 08:43:53 nijtmans Exp $
*/
#include "tclInt.h"
@@ -240,7 +240,7 @@ Tcl_Release(
* Reference not found. This is a bug in the caller.
*/
- Tcl_Panic("Tcl_Release couldn't find reference for 0x%x", clientData);
+ Tcl_Panic("Tcl_Release couldn't find reference for 0x%x", PTR2UINT(clientData));
}
/*
@@ -280,7 +280,7 @@ Tcl_EventuallyFree(
continue;
}
if (refPtr->mustFree) {
- Tcl_Panic("Tcl_EventuallyFree called twice for 0x%x", clientData);
+ Tcl_Panic("Tcl_EventuallyFree called twice for 0x%x", PTR2UINT(clientData));
}
refPtr->mustFree = 1;
refPtr->freeProc = freeProc;