From 70d65fed3a230dcf17939786b5ac941423e29216 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 16 Jan 2017 01:09:37 -0800 Subject: Fixes for 32-bit Windows compilation. --- src/transport/ipc/ipc.c | 2 +- src/transport/tcp/tcp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/transport') diff --git a/src/transport/ipc/ipc.c b/src/transport/ipc/ipc.c index 4f1a5afa..3aef5363 100644 --- a/src/transport/ipc/ipc.c +++ b/src/transport/ipc/ipc.c @@ -126,7 +126,7 @@ nni_ipc_pipe_recv(void *arg, nni_msg **msgp) return (NNG_EPROTO); } - if ((rv = nng_msg_alloc(&msg, len)) != 0) { + if ((rv = nng_msg_alloc(&msg, (size_t) len)) != 0) { return (rv); } diff --git a/src/transport/tcp/tcp.c b/src/transport/tcp/tcp.c index 6c085388..09a2b385 100644 --- a/src/transport/tcp/tcp.c +++ b/src/transport/tcp/tcp.c @@ -115,7 +115,7 @@ nni_tcp_pipe_recv(void *arg, nni_msg **msgp) return (NNG_EPROTO); } - if ((rv = nng_msg_alloc(&msg, len)) != 0) { + if ((rv = nng_msg_alloc(&msg, (size_t) len)) != 0) { return (rv); } -- cgit v1.2.3-70-g09d2