From 1773c9a39a2ca2d463fe9650b3fe8ab4defa2f6d Mon Sep 17 00:00:00 2001 From: "venkat@comit.com" Date: Sun, 24 Apr 2011 19:19:25 +0000 Subject: Fix compilation warning in TclListObj - printf format mismatch --- generic/tclListObj.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/generic/tclListObj.c b/generic/tclListObj.c index b269607..e7d78bf 100644 --- a/generic/tclListObj.c +++ b/generic/tclListObj.c @@ -100,8 +100,8 @@ NewListIntRep( attemptckalloc(sizeof(List) + ((objc-1) * sizeof(Tcl_Obj *))); if (listRepPtr == NULL) { if (p) { - Tcl_Panic("list creation failed: unable to alloc %u bytes", - sizeof(List) + ((objc-1) * sizeof(Tcl_Obj *))); + Tcl_Panic("list creation failed: unable to alloc %lu bytes", + (unsigned long) (sizeof(List) + ((objc-1) * sizeof(Tcl_Obj *)))); } return NULL; } @@ -163,8 +163,8 @@ AttemptNewList( LIST_MAX)); } else { Tcl_SetObjResult(interp, Tcl_ObjPrintf( - "list creation failed: unable to alloc %u bytes", - sizeof(List) + ((objc-1) * sizeof(Tcl_Obj *)))); + "list creation failed: unable to alloc %lu bytes", + (unsigned long) (sizeof(List) + ((objc-1) * sizeof(Tcl_Obj *))))); } } return listRepPtr; -- cgit v0.12