diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-16 01:09:37 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-16 01:09:37 -0800 |
| commit | 70d65fed3a230dcf17939786b5ac941423e29216 (patch) | |
| tree | ab929f1960778dbfbc56a859f7caf3c689adc391 /src/transport | |
| parent | 39dbff5615631522d3ef98b83141957038502c0d (diff) | |
| download | nng-70d65fed3a230dcf17939786b5ac941423e29216.tar.gz nng-70d65fed3a230dcf17939786b5ac941423e29216.tar.bz2 nng-70d65fed3a230dcf17939786b5ac941423e29216.zip | |
Fixes for 32-bit Windows compilation.
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); } |
