From 8732b2bcd2bb6953c0d01766b71ef68a0fac2453 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 5 Aug 2017 20:02:02 -0700 Subject: Fix warninsg about size types found in 64-bit windows build. --- src/platform/windows/win_impl.h | 2 +- src/platform/windows/win_net.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/platform') diff --git a/src/platform/windows/win_impl.h b/src/platform/windows/win_impl.h index a2700485..6455fd5c 100644 --- a/src/platform/windows/win_impl.h +++ b/src/platform/windows/win_impl.h @@ -68,7 +68,7 @@ struct nni_win_event { nni_cv cv; unsigned run : 1; unsigned fini : 1; - int count; + unsigned count; int status; nni_win_event_ops ops; }; diff --git a/src/platform/windows/win_net.c b/src/platform/windows/win_net.c index df6275ff..63295a71 100644 --- a/src/platform/windows/win_net.c +++ b/src/platform/windows/win_net.c @@ -140,7 +140,7 @@ nni_win_tcp_pipe_start(nni_win_event *evt, nni_aio *aio) // Put the AIOs in Windows form. for (i = 0; i < aio->a_niov; i++) { iov[i].buf = aio->a_iov[i].iov_buf; - iov[i].len = aio->a_iov[i].iov_len; + iov[i].len = (ULONG) aio->a_iov[i].iov_len; } if ((s = pipe->s) == INVALID_SOCKET) { @@ -185,8 +185,8 @@ nni_win_tcp_pipe_cancel(nni_win_event *evt) static void nni_win_tcp_pipe_finish(nni_win_event *evt, nni_aio *aio) { - int rv; - DWORD cnt; + int rv; + size_t cnt; cnt = evt->count; if ((rv = evt->status) == 0) { -- cgit v1.2.3-70-g09d2