diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-08-05 20:02:02 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-08-05 20:02:02 -0700 |
| commit | 8732b2bcd2bb6953c0d01766b71ef68a0fac2453 (patch) | |
| tree | ecb2682929ef9c2e78e9958716dcf660d44cf62d /src/platform/windows/win_net.c | |
| parent | 96dbf571b34a97dec67c81369feb0d00a8f412f1 (diff) | |
| download | nng-8732b2bcd2bb6953c0d01766b71ef68a0fac2453.tar.gz nng-8732b2bcd2bb6953c0d01766b71ef68a0fac2453.tar.bz2 nng-8732b2bcd2bb6953c0d01766b71ef68a0fac2453.zip | |
Fix warninsg about size types found in 64-bit windows build.
Diffstat (limited to 'src/platform/windows/win_net.c')
| -rw-r--r-- | src/platform/windows/win_net.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |
