w32: Fix cast from intptr_t of _get_osfhandle.

* common/exectool.c (gnupg_exec_tool_stream): Cast to unsigned long.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2020-08-03 13:34:26 +09:00
parent da3a4c54a8
commit 8e04cf969e
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ gnupg_exec_tool_stream (const char *pgmname, const char *argv[],
create a copy of the array. */
#ifdef HAVE_W32_SYSTEM
snprintf (extrafdbuf, sizeof extrafdbuf, "-&%lu",
(unsigned long)(void*)_get_osfhandle (extrapipe[0]));
(unsigned long)_get_osfhandle (extrapipe[0]));
#else
snprintf (extrafdbuf, sizeof extrafdbuf, "-&%d", extrapipe[0]);
#endif