From 4a036d8c28725a4574ce3474bb960677ee3adde2 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Wed, 10 Jul 2019 14:51:59 +0200 Subject: [PATCH] declare lv_font_fmt_txt_cmap_type_t as uint8_t it causes issue if the bitfield ar interpreted as signed --- src/lv_font/lv_font_fmt_txt.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lv_font/lv_font_fmt_txt.h b/src/lv_font/lv_font_fmt_txt.h index 8e19f4b2e..cd9257d7d 100644 --- a/src/lv_font/lv_font_fmt_txt.h +++ b/src/lv_font/lv_font_fmt_txt.h @@ -50,12 +50,14 @@ typedef struct /** Format of font character map. */ -typedef enum { +enum { LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY, LV_FONT_FMT_TXT_CMAP_FORMAT0_FULL, LV_FONT_FMT_TXT_CMAP_SPARSE_TINY, LV_FONT_FMT_TXT_CMAP_SPARSE_FULL, -}lv_font_fmt_txt_cmap_type_t; +}; + +typedef uint8_t lv_font_fmt_txt_cmap_type_t; /* Map codepoints to a `glyph_dsc`s