mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 04:49:25 +08:00
Cygwin: Use correct string conversion
Correct the string conversion calls so both argv elements get converted at full precision.
This commit is contained in:
parent
8b080534ca
commit
40b947e7d5
@ -5,9 +5,9 @@ main (int argc, char **argv)
|
||||
char *end;
|
||||
if (argc != 3)
|
||||
exit (1);
|
||||
HANDLE h = (HANDLE) strtoul (argv[1], &end, 0);
|
||||
HANDLE h = (HANDLE) strtoull (argv[1], &end, 0);
|
||||
SetEvent (h);
|
||||
h = (HANDLE) strtoul (argv[2], &end, 0);
|
||||
h = (HANDLE) strtoull (argv[2], &end, 0);
|
||||
WaitForSingleObject (h, INFINITE);
|
||||
exit (0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user