summaryrefslogtreecommitdiffstats
path: root/win/tkWinWindow.c
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2007-02-23 14:15:34 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2007-02-23 14:15:34 (GMT)
commit6990f5705832004f6ba827c1e76b70ffd5dce2db (patch)
treecfd7806eb505339a352a0f4b9473f0cc448028cb /win/tkWinWindow.c
parent1d03aad5881fb44e883a1ddcc2317744b44a8d9a (diff)
downloadtk-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.c6
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;
}