diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2007-04-17 15:24:48 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2007-04-17 15:24:48 (GMT) |
commit | 9d3fb25e65ee2569dfcb580c58e9ad0fad7e10a5 (patch) | |
tree | fcc2691d3a4527ae09e85d66b6f6aa5d559a4734 | |
parent | 71807b8a629a1628286b5dd2858f0e3df2ada2fa (diff) | |
download | tk-9d3fb25e65ee2569dfcb580c58e9ad0fad7e10a5.zip tk-9d3fb25e65ee2569dfcb580c58e9ad0fad7e10a5.tar.gz tk-9d3fb25e65ee2569dfcb580c58e9ad0fad7e10a5.tar.bz2 |
Add in cast for boneheadedness in VC's handling of const qualifiers
-rw-r--r-- | generic/tkCanvas.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/generic/tkCanvas.c b/generic/tkCanvas.c index d420a8b..34454bb 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.41 2007/04/17 14:36:49 dkf Exp $ + * RCS: @(#) $Id: tkCanvas.c,v 1.42 2007/04/17 15:24:48 dkf Exp $ */ /* #define USE_OLD_TAG_SEARCH 1 */ @@ -3835,9 +3835,10 @@ DoItem( Tk_Uid *newTagPtr; itemPtr->tagSpace += 5; - newTagPtr = (Tk_Uid *) ckalloc((unsigned) - (itemPtr->tagSpace * sizeof(Tk_Uid))); - memcpy(newTagPtr, itemPtr->tagPtr, itemPtr->numTags * sizeof(Tk_Uid)); + newTagPtr = (Tk_Uid *) + ckalloc((unsigned) (itemPtr->tagSpace * sizeof(Tk_Uid))); + memcpy((void *) newTagPtr, itemPtr->tagPtr, + itemPtr->numTags * sizeof(Tk_Uid)); if (itemPtr->tagPtr != itemPtr->staticTagSpace) { ckfree((char *) itemPtr->tagPtr); } |