From c974fc9d4326d8674cb853fed49a7130fc0c8c86 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 21 Mar 2018 09:33:00 +0100 Subject: [PATCH] http_client: fix compiling if mem_size_t is smaller than size_t --- src/apps/http/http_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/http/http_client.c b/src/apps/http/http_client.c index aa30aeb3..438e374b 100644 --- a/src/apps/http/http_client.c +++ b/src/apps/http/http_client.c @@ -727,7 +727,7 @@ httpc_fs_init(httpc_filestate_t **filestate_out, const char* local_file_name, file_len = strlen(local_file_name); alloc_len = sizeof(httpc_filestate_t) + file_len + 1; - filestate = (httpc_filestate_t *)mem_malloc(alloc_len); + filestate = (httpc_filestate_t *)mem_malloc((mem_size_t)alloc_len); if (filestate == NULL) { return ERR_MEM; }