summaryrefslogtreecommitdiffstats
path: root/generic/tclListObj.c
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2011-04-25 12:49:53 (GMT)
committerdgp <dgp@noemail.net>2011-04-25 12:49:53 (GMT)
commit498200f44c69ce4697b55d8824f019d77b2ceec3 (patch)
treeec927f8e6e2eea434d880cedc9bd920f76bfca8f /generic/tclListObj.c
parentb81b8e3a3a12cbb96c98adeb4bcbaa11170d578f (diff)
downloadtcl-498200f44c69ce4697b55d8824f019d77b2ceec3.zip
tcl-498200f44c69ce4697b55d8824f019d77b2ceec3.tar.gz
tcl-498200f44c69ce4697b55d8824f019d77b2ceec3.tar.bz2
Revise last fix.
FossilOrigin-Name: d7448b047eee2d20c95c0d381282041da6b49d72
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);
}