From 70f37765e1508c03a7994ed0ba2ead67fff67bba Mon Sep 17 00:00:00 2001 From: dgp Date: Mon, 25 Apr 2011 12:49:53 +0000 Subject: Revise last fix. --- generic/tclListObj.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/generic/tclListObj.c b/generic/tclListObj.c index 46e846d..7955e19 100644 --- a/generic/tclListObj.c +++ b/generic/tclListObj.c @@ -99,8 +99,8 @@ NewListIntRep( listRepPtr = attemptckalloc(sizeof(List) + ((objc-1) * sizeof(Tcl_Obj*))); if (listRepPtr == NULL) { if (p) { - Tcl_Panic("list creation failed: unable to alloc %lu bytes", - (unsigned long) (sizeof(List) + ((objc-1) * sizeof(Tcl_Obj *)))); + Tcl_Panic("list creation failed: unable to alloc %u bytes", + (unsigned)(sizeof(List) + ((objc-1) * sizeof(Tcl_Obj *)))); } return NULL; } @@ -162,8 +162,8 @@ AttemptNewList( LIST_MAX)); } else { Tcl_SetObjResult(interp, Tcl_ObjPrintf( - "list creation failed: unable to alloc %lu bytes", - (unsigned long) (sizeof(List) + ((objc-1) * sizeof(Tcl_Obj *))))); + "list creation failed: unable to alloc %u bytes", + (unsigned)(sizeof(List) + ((objc-1) * sizeof(Tcl_Obj *))))); } Tcl_SetErrorCode(interp, "TCL", "MEMORY", NULL); } -- cgit v0.12