summaryrefslogtreecommitdiffstats
path: root/generic/tclCompExpr.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-04-17 14:49:53 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-04-17 14:49:53 (GMT)
commit7ab521d768effeec66e8d06abf0067ce0652a57f (patch)
treed38a0997ec4141e501a5f19512dfe1445d8c4404 /generic/tclCompExpr.c
parent3943396d1d7a64194d6babf11bbf7db8ab76be16 (diff)
downloadtcl-7ab521d768effeec66e8d06abf0067ce0652a57f.zip
tcl-7ab521d768effeec66e8d06abf0067ce0652a57f.tar.gz
tcl-7ab521d768effeec66e8d06abf0067ce0652a57f.tar.bz2
Eliminate use of (VOID*) casts when calling memset or memcpy.
Diffstat (limited to 'generic/tclCompExpr.c')
-rw-r--r--generic/tclCompExpr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclCompExpr.c b/generic/tclCompExpr.c
index 0043b65..e5cddb3 100644
--- a/generic/tclCompExpr.c
+++ b/generic/tclCompExpr.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: tclCompExpr.c,v 1.49 2007/04/10 14:47:10 dkf Exp $
+ * RCS: @(#) $Id: tclCompExpr.c,v 1.50 2007/04/17 14:49:53 dkf Exp $
*/
#include "tclInt.h"
@@ -1858,7 +1858,7 @@ GenerateTokens(
destPtr->type = TCL_TOKEN_WORD;
destPtr->numComponents = toCopy;
destPtr++;
- memcpy((VOID *) destPtr, (VOID *) sourcePtr,
+ memcpy(destPtr, sourcePtr,
(size_t) (toCopy * sizeof(Tcl_Token)));
parsePtr->numTokens += toCopy + 2;
break;
@@ -1876,7 +1876,7 @@ GenerateTokens(
TclExpandTokenArray(parsePtr);
}
destPtr = parsePtr->tokenPtr + parsePtr->numTokens;
- memcpy((VOID *) destPtr, (VOID *) sourcePtr,
+ memcpy(destPtr, sourcePtr,
(size_t) (toCopy * sizeof(Tcl_Token)));
parsePtr->numTokens += toCopy;
break;