diff --git a/src/lv_core/lv_debug.h b/src/lv_core/lv_debug.h index 72eb3367a39f..a932004e47d4 100644 --- a/src/lv_core/lv_debug.h +++ b/src/lv_core/lv_debug.h @@ -49,7 +49,7 @@ void lv_debug_log_error(const char * msg, uint64_t value); { \ if(!(expr)) { \ LV_LOG_ERROR(__func__); \ - lv_debug_log_error(msg, (uint64_t)value); \ + lv_debug_log_error(msg, (uint64_t)((uintptr_t)value)); \ while(1); \ } \ }