diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2007-02-23 14:15:34 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2007-02-23 14:15:34 (GMT) |
commit | 466f3826d204583596a8786b6b1aa751298ef459 (patch) | |
tree | cfd7806eb505339a352a0f4b9473f0cc448028cb /win/tkWinWindow.c | |
parent | 10f9e4c0170ab04b7570c5b38cb8ba434e996cfa (diff) | |
download | tk-466f3826d204583596a8786b6b1aa751298ef459.zip tk-466f3826d204583596a8786b6b1aa751298ef459.tar.gz tk-466f3826d204583596a8786b6b1aa751298ef459.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; } |