summaryrefslogtreecommitdiffstats
path: root/generic/tclPreserve.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2011-01-18 10:02:02 (GMT)
committernijtmans <nijtmans>2011-01-18 10:02:02 (GMT)
commitcc8366263b4a7bcff79d426bf5ec811715a7d0b7 (patch)
treed024a01a23bca66395b5d830b9ff79ab3c1ea6a0 /generic/tclPreserve.c
parentc19c3f2d6de6320a78e1a5fc90c832a6247f8f9c (diff)
downloadtcl-cc8366263b4a7bcff79d426bf5ec811715a7d0b7.zip
tcl-cc8366263b4a7bcff79d426bf5ec811715a7d0b7.tar.gz
tcl-cc8366263b4a7bcff79d426bf5ec811715a7d0b7.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 3c991ea..ef7616e 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.10 2007/03/21 18:02:51 dgp Exp $
+ * RCS: @(#) $Id: tclPreserve.c,v 1.10.4.1 2011/01/18 10:02:03 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));
}
/*
@@ -281,7 +281,7 @@ Tcl_EventuallyFree(
}
if (refPtr->mustFree) {
Tcl_Panic("Tcl_EventuallyFree called twice for 0x%x",
- clientData);
+ PTR2UINT(clientData));
}
refPtr->mustFree = 1;
refPtr->freeProc = freeProc;