diff options
author | venkat <venkat@comit.com> | 2011-04-24 19:19:25 (GMT) |
---|---|---|
committer | venkat <venkat@comit.com> | 2011-04-24 19:19:25 (GMT) |
commit | 94705239e0e070d0ff21145a306de35e3c0817c8 (patch) | |
tree | 200fdf83f992b6529bcf3e95d7574791f3d055bd /generic/tclListObj.c | |
parent | 2655a2a137310115e9acf31c856e6994f682510f (diff) | |
download | tcl-94705239e0e070d0ff21145a306de35e3c0817c8.zip tcl-94705239e0e070d0ff21145a306de35e3c0817c8.tar.gz tcl-94705239e0e070d0ff21145a306de35e3c0817c8.tar.bz2 |
Fix compilation warning in TclListObj - printf format mismatch
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 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; |