diff options
author | dkf <dkf@noemail.net> | 2007-01-12 09:08:36 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2007-01-12 09:08:36 (GMT) |
commit | 19eb12246a62639e529da4e86086b05cb3019213 (patch) | |
tree | bf715acf4f3bdec103ff3e909993230f127ce6d9 /generic/tkImgGIF.c | |
parent | 5b4f2d2d4b8819bfdef9929e5b2d40033bf81fa5 (diff) | |
download | tk-19eb12246a62639e529da4e86086b05cb3019213.zip tk-19eb12246a62639e529da4e86086b05cb3019213.tar.gz tk-19eb12246a62639e529da4e86086b05cb3019213.tar.bz2 |
Quell type-punning warnings from gcc/unix build
FossilOrigin-Name: 6dc8f9ef86b1d2a17a77267d21fcc35827316878
Diffstat (limited to 'generic/tkImgGIF.c')
-rw-r--r-- | generic/tkImgGIF.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tkImgGIF.c b/generic/tkImgGIF.c index 970c253..c2bc318 100644 --- a/generic/tkImgGIF.c +++ b/generic/tkImgGIF.c @@ -32,7 +32,7 @@ * This file also contains code from miGIF. See lower down in file for the * applicable copyright notice for that portion. * - * RCS: @(#) $Id: tkImgGIF.c,v 1.34 2007/01/11 15:35:39 dkf Exp $ + * RCS: @(#) $Id: tkImgGIF.c,v 1.35 2007/01/12 09:08:36 dkf Exp $ */ /* @@ -627,11 +627,11 @@ StringReadGIF( int width, int height, /* image to copy */ int srcX, int srcY) { - MFile handle; + MFile handle, *hdlPtr = &handle; int length; char *data = (char *) Tcl_GetByteArrayFromObj(dataObj, &length); - mInit((unsigned char *)data, &handle, length); + mInit((unsigned char *)data, hdlPtr, length); if (strncmp(GIF87a, data, 6) && strncmp(GIF89a, data, 6)) { /* @@ -641,10 +641,10 @@ StringReadGIF( * because of potential padding). */ - return FileReadGIF(interp, (Tcl_Channel) &handle, INLINE_DATA_BASE64, + return FileReadGIF(interp, (Tcl_Channel) hdlPtr, INLINE_DATA_BASE64, format, imageHandle, destX, destY, width, height, srcX, srcY); } else { - return FileReadGIF(interp, (Tcl_Channel) &handle, INLINE_DATA_BINARY, + return FileReadGIF(interp, (Tcl_Channel) hdlPtr, INLINE_DATA_BINARY, format, imageHandle, destX, destY, width, height, srcX, srcY); } } |