Skip to content

Commit

Permalink
compat.cc: fix warning on 64Bit windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Nov 5, 2019
1 parent 73c0123 commit 33b681a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/win32/compat/compat.cc
Expand Up @@ -3419,11 +3419,11 @@ Bpipe* OpenBpipe(char* prog, int wait, const char* mode, bool dup_stderr)
int kill(int pid, int signal)
{
int rval = 0;
if (!TerminateProcess((HANDLE)pid, (UINT)signal)) {
if (!TerminateProcess((HANDLE)(UINT_PTR)pid, (UINT)signal)) {
rval = -1;
errno = b_errno_win32;
}
CloseHandle((HANDLE)pid);
CloseHandle((HANDLE)(UINT_PTR)pid);
return rval;
}

Expand Down

0 comments on commit 33b681a

Please sign in to comment.