merge dev-6.1
This commit is contained in:
@@ -108,7 +108,7 @@ void lv_mem_init(void)
|
||||
* @param size size of the memory to allocate in bytes
|
||||
* @return pointer to the allocated memory
|
||||
*/
|
||||
void * lv_mem_alloc(uint32_t size)
|
||||
void * lv_mem_alloc(size_t size)
|
||||
{
|
||||
if(size == 0) {
|
||||
return &zero_mem;
|
||||
@@ -223,7 +223,7 @@ void lv_mem_free(const void * data)
|
||||
|
||||
#if LV_ENABLE_GC == 0
|
||||
|
||||
void * lv_mem_realloc(void * data_p, uint32_t new_size)
|
||||
void * lv_mem_realloc(void * data_p, size_t new_size)
|
||||
{
|
||||
/*data_p could be previously freed pointer (in this case it is invalid)*/
|
||||
if(data_p != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user