Cygwin: Use correct string conversion

Correct the string conversion calls so both argv elements get converted
at full precision.
This commit is contained in:
Mark Geisert 2019-06-26 22:31:56 -07:00 committed by Ken Brown
parent 775e529689
commit 9afb622c38
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}