mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 09:16:20 +00:00
http_client: fix compiling if mem_size_t is smaller than size_t
This commit is contained in:
parent
c881c48eed
commit
c974fc9d43
@ -727,7 +727,7 @@ httpc_fs_init(httpc_filestate_t **filestate_out, const char* local_file_name,
|
|||||||
file_len = strlen(local_file_name);
|
file_len = strlen(local_file_name);
|
||||||
alloc_len = sizeof(httpc_filestate_t) + file_len + 1;
|
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) {
|
if (filestate == NULL) {
|
||||||
return ERR_MEM;
|
return ERR_MEM;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user