fix exit code of processes in si_waitpid on windows

GetExitCodeProcess returns the exit code in a DWORD, which is an
    unsigned integer, however main functions usually return a signed int, so
    we need put in an explicit type cast.
This commit is contained in:
Marius Gerbershagen 2018-07-07 22:03:52 +02:00
parent fb643f6b0f
commit 2ad7cef5dd

View file

@ -152,7 +152,7 @@ si_waitpid(cl_object pid, cl_object wait)
code = ECL_NIL;
} else {
status = @':exited';
code = ecl_make_fixnum(exitcode);
code = ecl_make_fixnum((int)exitcode);
pid->foreign.data = NULL;
CloseHandle(*hProcess);
}