1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

bugfix: use size_t also when GC is enabled (#1304)

This commit is contained in:
Amir Gonnen 2019-12-06 23:10:04 +02:00 committed by embeddedt
parent d7735410c9
commit 842283d136

View File

@ -262,7 +262,7 @@ void * lv_mem_realloc(void * data_p, size_t new_size)
#else /* LV_ENABLE_GC */
void * lv_mem_realloc(void * data_p, uint32_t new_size)
void * lv_mem_realloc(void * data_p, size_t new_size)
{
void * new_p = LV_MEM_CUSTOM_REALLOC(data_p, new_size);
if(new_p == NULL) LV_LOG_WARN("Couldn't allocate memory");