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
775e529689
commit
9afb622c38
|
@ -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…
Reference in New Issue