diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2008-11-03 10:17:49 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2008-11-03 10:17:49 (GMT) |
commit | 10ad3b7e6d4aa2d3a8be587ed4781c10ca4bd127 (patch) | |
tree | e206827bf78e2c529eed71aa8ebfd9fc89a81c93 /generic/tkCanvas.c | |
parent | 1a48fb290ec79a61bc2e93a0d936dc68d9c31649 (diff) | |
download | tk-10ad3b7e6d4aa2d3a8be587ed4781c10ca4bd127.zip tk-10ad3b7e6d4aa2d3a8be587ed4781c10ca4bd127.tar.gz tk-10ad3b7e6d4aa2d3a8be587ed4781c10ca4bd127.tar.bz2 |
Added cast to work around stupid type inference bug in MSVC. Apparently it
can't tell the difference between 'const char **' and 'char *const *'...
Diffstat (limited to 'generic/tkCanvas.c')
-rw-r--r-- | generic/tkCanvas.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkCanvas.c b/generic/tkCanvas.c index 5b415bf..bfdc2c8 100644 --- a/generic/tkCanvas.c +++ b/generic/tkCanvas.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkCanvas.c,v 1.55 2008/11/01 16:14:30 dkf Exp $ + * RCS: @(#) $Id: tkCanvas.c,v 1.56 2008/11/03 10:17:49 dkf Exp $ */ /* #define USE_OLD_TAG_SEARCH 1 */ @@ -4163,7 +4163,7 @@ DoItem( itemPtr->tagSpace += 5; newTagPtr = (Tk_Uid *) ckalloc((unsigned) itemPtr->tagSpace * sizeof(Tk_Uid)); - memcpy(newTagPtr, itemPtr->tagPtr, + memcpy((void *) newTagPtr, itemPtr->tagPtr, itemPtr->numTags * sizeof(Tk_Uid)); if (itemPtr->tagPtr != itemPtr->staticTagSpace) { ckfree((char *) itemPtr->tagPtr); |