diff options
| author | dgp@users.sourceforge.net <dgp> | 2011-04-25 12:49:53 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2011-04-25 12:49:53 (GMT) |
| commit | 2e4a051b3b2b7c36a2bc6985b9d8a558cf90785c (patch) | |
| tree | ec927f8e6e2eea434d880cedc9bd920f76bfca8f | |
| parent | 8985d8665c55dbea2f1c10d7c85dbb8eafa07e9e (diff) | |
| download | tcl-2e4a051b3b2b7c36a2bc6985b9d8a558cf90785c.zip tcl-2e4a051b3b2b7c36a2bc6985b9d8a558cf90785c.tar.gz tcl-2e4a051b3b2b7c36a2bc6985b9d8a558cf90785c.tar.bz2 | |
Revise last fix.
| -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 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); } |
