diff options
author | donal.k.fellows@manchester.ac.uk <dkf> | 2007-02-23 14:15:34 (GMT) |
---|---|---|
committer | donal.k.fellows@manchester.ac.uk <dkf> | 2007-02-23 14:15:34 (GMT) |
commit | 6990f5705832004f6ba827c1e76b70ffd5dce2db (patch) | |
tree | cfd7806eb505339a352a0f4b9473f0cc448028cb /win/tkWinWindow.c | |
parent | 1d03aad5881fb44e883a1ddcc2317744b44a8d9a (diff) | |
download | tk-6990f5705832004f6ba827c1e76b70ffd5dce2db.zip tk-6990f5705832004f6ba827c1e76b70ffd5dce2db.tar.gz tk-6990f5705832004f6ba827c1e76b70ffd5dce2db.tar.bz2 |
Reduce the number of warnings
Diffstat (limited to 'win/tkWinWindow.c')
-rw-r--r-- | win/tkWinWindow.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tkWinWindow.c b/win/tkWinWindow.c index 016fbb7..e7a25af 100644 --- a/win/tkWinWindow.c +++ b/win/tkWinWindow.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinWindow.c,v 1.14 2007/02/22 13:56:35 dkf Exp $ + * RCS: @(#) $Id: tkWinWindow.c,v 1.15 2007/02/23 14:15:34 dkf Exp $ */ #include "tkWinInt.h" @@ -208,7 +208,7 @@ TkpScanWindowId( Window *idPtr) /* Place to store converted result. */ { Tk_Window tkwin; - Window number; + Window number, *numberPtr = &number; /* * We want sscanf for the 64-bit check, but if that doesn't work, then @@ -219,7 +219,7 @@ TkpScanWindowId( #ifdef _WIN64 (sscanf(string, "0x%p", &number) != 1) && #endif - Tcl_GetInt(interp, string, (int *) &number) != TCL_OK) { + Tcl_GetInt(interp, string, (int *) numberPtr) != TCL_OK) { return TCL_ERROR; } |