mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-22 12:33:39 -08:00
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:
parent
fb643f6b0f
commit
2ad7cef5dd
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue