1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

Fix a few compiler warnings (#1371)

This commit is contained in:
xennex22 2020-02-07 13:28:14 -08:00 committed by GitHub
parent 0598428d0d
commit 43a06b41be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -139,6 +139,7 @@ lv_disp_t * lv_disp_drv_register(lv_disp_drv_t * driver)
if(disp->refr_task == NULL) return NULL;
disp->inv_p = 0;
disp->last_activity_time = 0;
disp->act_scr = lv_obj_create(NULL, NULL); /*Create a default screen on the display*/
disp->top_layer = lv_obj_create(NULL, NULL); /*Create top layer on the display*/

View File

@ -94,9 +94,9 @@ int32_t lv_bezier3(uint32_t t, int32_t u0, int32_t u1, int32_t u2, int32_t u3)
return v1 + v2 + v3 + v4;
}
#define BITSPERLONG 32
#define BITSPERLONG 32UL
#define TOP2BITS(x) ((x & (3L << (BITSPERLONG-2))) >> (BITSPERLONG-2))
#define TOP2BITS(x) ((x & (3UL << (BITSPERLONG-2))) >> (BITSPERLONG-2))
void lv_sqrt(uint32_t x, lv_sqrt_res_t * q)
{