4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 12:59:21 +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:
Mark Geisert 2019-06-26 22:31:56 -07:00 committed by Corinna Vinschen
parent 8b080534ca
commit 40b947e7d5

View File

@ -5,9 +5,9 @@ main (int argc, char **argv)
char *end; char *end;
if (argc != 3) if (argc != 3)
exit (1); exit (1);
HANDLE h = (HANDLE) strtoul (argv[1], &end, 0); HANDLE h = (HANDLE) strtoull (argv[1], &end, 0);
SetEvent (h); SetEvent (h);
h = (HANDLE) strtoul (argv[2], &end, 0); h = (HANDLE) strtoull (argv[2], &end, 0);
WaitForSingleObject (h, INFINITE); WaitForSingleObject (h, INFINITE);
exit (0); exit (0);
} }