summaryrefslogtreecommitdiffstats
path: root/generic/tclInterp.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2006-11-02 16:39:06 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2006-11-02 16:39:06 (GMT)
commitd21c1ef27faf5fb3983ceaa6fb2f9e4d92fd79fc (patch)
treed9e4c3e04a4263f92044201ab69aa5f301ba18f5 /generic/tclInterp.c
parente1cbc16cc15897f437b3072919403624a0d79ec0 (diff)
downloadtcl-d21c1ef27faf5fb3983ceaa6fb2f9e4d92fd79fc.zip
tcl-d21c1ef27faf5fb3983ceaa6fb2f9e4d92fd79fc.tar.gz
tcl-d21c1ef27faf5fb3983ceaa6fb2f9e4d92fd79fc.tar.bz2
Silence compiler grumbles.
Diffstat (limited to 'generic/tclInterp.c')
-rw-r--r--generic/tclInterp.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/generic/tclInterp.c b/generic/tclInterp.c
index a6f3e6c..ccdef95 100644
--- a/generic/tclInterp.c
+++ b/generic/tclInterp.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclInterp.c,v 1.68 2006/11/02 13:54:46 dkf Exp $
+ * RCS: @(#) $Id: tclInterp.c,v 1.69 2006/11/02 16:39:06 dkf Exp $
*/
#include "tclInt.h"
@@ -1691,7 +1691,7 @@ AliasObjCmd(
Tcl_Obj *CONST objv[]) /* Argument vector. */
{
#define ALIAS_CMDV_PREALLOC 10
- Alias *aliasPtr = (Alias *) clientData;
+ Alias *aliasPtr = clientData;
Tcl_Interp *targetInterp = aliasPtr->targetInterp;
int result, prefc, cmdc, i;
Tcl_Obj **prefv, **cmdv;
@@ -1710,15 +1710,12 @@ AliasObjCmd(
if (cmdc <= ALIAS_CMDV_PREALLOC) {
cmdv = cmdArr;
} else {
- cmdv = (Tcl_Obj **) TclStackAlloc(interp,
- (unsigned) (cmdc * sizeof(Tcl_Obj *)));
+ cmdv = (Tcl_Obj **) TclStackAlloc(interp, cmdc*(int)sizeof(Tcl_Obj*));
}
prefv = &aliasPtr->objPtr;
- memcpy((VOID *) cmdv, (VOID *) prefv,
- (size_t) (prefc * sizeof(Tcl_Obj *)));
- memcpy((VOID *) (cmdv+prefc), (VOID *) (objv+1),
- (size_t) ((objc-1) * sizeof(Tcl_Obj *)));
+ memcpy(cmdv, prefv, (size_t) (prefc * sizeof(Tcl_Obj *)));
+ memcpy(cmdv+prefc, objv+1, (size_t) ((objc-1) * sizeof(Tcl_Obj *)));
Tcl_ResetResult(targetInterp);