summaryrefslogtreecommitdiffstats
path: root/generic/tclListObj.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-04-25 12:49:53 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-04-25 12:49:53 (GMT)
commit70f37765e1508c03a7994ed0ba2ead67fff67bba (patch)
treeec927f8e6e2eea434d880cedc9bd920f76bfca8f /generic/tclListObj.c
parentb42c86276e7b3b11c994a676dd2062ca62c802b6 (diff)
downloadtcl-70f37765e1508c03a7994ed0ba2ead67fff67bba.zip
tcl-70f37765e1508c03a7994ed0ba2ead67fff67bba.tar.gz
tcl-70f37765e1508c03a7994ed0ba2ead67fff67bba.tar.bz2
Revise last fix.
Diffstat (limited to 'generic/tclListObj.c')
-rw-r--r--generic/tclListObj.c8
1 files 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);
}