From 8c4abfd7a774a103d2540889848b6cc69a802e72 Mon Sep 17 00:00:00 2001 From: nijtmans Date: Tue, 25 Jan 2011 07:17:26 +0000 Subject: Don't miss 64-bit address bits in panic message. --- ChangeLog | 4 ++++ generic/tclPreserve.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 943b031..fb7a31e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-01-18 Jan Nijtmans + + * generic/tclPreserve.c: Don't miss 64-bit address bits in panic message. + 2011-01-19 Jan Nijtmans * tools/genStubs.tcl: [Enh #3159920]: Tcl_ObjPrintf() crashes with diff --git a/generic/tclPreserve.c b/generic/tclPreserve.c index 427ba77..5612f41 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.13 2011/01/18 08:43:53 nijtmans Exp $ + * RCS: @(#) $Id: tclPreserve.c,v 1.14 2011/01/25 07:17:26 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", PTR2UINT(clientData)); + Tcl_Panic("Tcl_Release couldn't find reference for %p", clientData); } /* @@ -280,7 +280,7 @@ Tcl_EventuallyFree( continue; } if (refPtr->mustFree) { - Tcl_Panic("Tcl_EventuallyFree called twice for 0x%x", PTR2UINT(clientData)); + Tcl_Panic("Tcl_EventuallyFree called twice for %p", clientData); } refPtr->mustFree = 1; refPtr->freeProc = freeProc; -- cgit v0.12