diff options
Diffstat (limited to 'src/transport')
| -rw-r--r-- | src/transport/ipc/ipc.c | 2 | ||||
| -rw-r--r-- | src/transport/tcp/tcp.c | 2 |
2 files changed, 2 insertions, 2 deletions
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); } |
