diff options
author | venkat <venkat@noemail.net> | 2011-04-24 19:26:19 (GMT) |
---|---|---|
committer | venkat <venkat@noemail.net> | 2011-04-24 19:26:19 (GMT) |
commit | b81b8e3a3a12cbb96c98adeb4bcbaa11170d578f (patch) | |
tree | 382433949aecd7a77775fb221f6da54d5e2aede3 /generic/tclListObj.c | |
parent | 64e1caf18cdada44fcfaf2b0f271f7603773f468 (diff) | |
parent | d0732ace72994895d35ff2774342758c9ce0b274 (diff) | |
download | tcl-b81b8e3a3a12cbb96c98adeb4bcbaa11170d578f.zip tcl-b81b8e3a3a12cbb96c98adeb4bcbaa11170d578f.tar.gz tcl-b81b8e3a3a12cbb96c98adeb4bcbaa11170d578f.tar.bz2 |
Fix compilation warning in TclListObj - printf format mismatch
FossilOrigin-Name: 3e2ab34dea7141f4312e8a13be854a3337bde2fb
Diffstat (limited to 'generic/tclListObj.c')
-rw-r--r-- | generic/tclListObj.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclListObj.c b/generic/tclListObj.c index be3e212..46e846d 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 %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; } @@ -162,8 +162,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 *))))); } Tcl_SetErrorCode(interp, "TCL", "MEMORY", NULL); } |