summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorthiagoftsm <thiagoftsm@gmail.com>2022-09-26 13:49:56 +0000
committerGitHub <noreply@github.com>2022-09-26 13:49:56 +0000
commit71cb1ad68707718671ef57c901dfa2041f15bbe6 (patch)
tree71f0cb5819b66a0864e1044678492ea044beed3c /cli
parent570a716100f313026c127e9dbf3b9c65e423e3a3 (diff)
Fix warnings during compilation time on ARM (32 bits) (#13681)
Diffstat (limited to 'cli')
-rw-r--r--cli/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/cli.c b/cli/cli.c
index 229ad2952d..c14653f373 100644
--- a/cli/cli.c
+++ b/cli/cli.c
@@ -78,7 +78,7 @@ static void pipe_read_cb(uv_stream_t *client, ssize_t nread, const uv_buf_t *buf
} else if (nread) {
size_t to_copy;
- to_copy = MIN(nread, MAX_COMMAND_LENGTH - 1 - response_string_size);
+ to_copy = MIN((unsigned int) nread, MAX_COMMAND_LENGTH - 1 - response_string_size);
memcpy(response_string + response_string_size, buf->base, to_copy);
response_string_size += to_copy;
response_string[response_string_size] = '\0';