|
1 | 1 | // Copyright (C)2004 Landmark Graphics Corporation |
2 | 2 | // Copyright (C)2006-2007 Sun Microsystems, Inc. |
3 | | -// Copyright (C)2011, 2013-2014, 2016-2019 D. R. Commander |
| 3 | +// Copyright (C)2011, 2013-2014, 2016-2019, 2021 D. R. Commander |
4 | 4 | // |
5 | 5 | // This library is free software and may be redistributed and/or modified under |
6 | 6 | // the terms of the wxWindows Library License, Version 3.1 or (at your option) |
@@ -191,7 +191,9 @@ int main(int argc, char **argv) |
191 | 191 | else if(!stricmp(argv[i], "-wh") && i < argc - 1) |
192 | 192 | { |
193 | 193 | #ifdef _WIN32 |
194 | | - if(sscanf(argv[++i], "%x", &wh) < 1 || wh <= 0) usage(); |
| 194 | + size_t temp = 0; |
| 195 | + if(sscanf(argv[++i], "%zx", &temp) < 1 || temp <= 0) usage(); |
| 196 | + wh = (fbx_wh)temp; |
195 | 197 | #else |
196 | 198 | unsigned int temp = 0; |
197 | 199 | if(sscanf(argv[++i], "%x", &temp) < 1 || temp <= 0) usage(); |
@@ -260,7 +262,7 @@ int main(int argc, char **argv) |
260 | 262 | } |
261 | 263 | char temps[1024]; |
262 | 264 | GetWindowText(wh, temps, 1024); |
263 | | - printf("Monitoring window 0x%.8x (%s)\n", wh, temps); |
| 265 | + printf("Monitoring window 0x%.8zx (%s)\n", (size_t)wh, temps); |
264 | 266 |
|
265 | 267 | #else |
266 | 268 |
|
|
0 commit comments