diff --git a/kitty/fonts.c b/kitty/fonts.c index ae49497f7..6f3be9c24 100644 --- a/kitty/fonts.c +++ b/kitty/fonts.c @@ -681,7 +681,7 @@ fallback_font(FontGroup *fg, const CPUCell *cpu_cell, const GPUCell *gpu_cell, c bool emoji_presentation = has_emoji_presentation(cpu_cell, lc); char style = emoji_presentation ? 'a' : 'A'; if (bold) style += italic ? 3 : 2; else style += italic ? 1 : 0; - char cell_text[4 * (MAX_NUM_CODEPOINTS_PER_CELL + 8)] = {style}; + char cell_text[4u * (MAX_NUM_CODEPOINTS_PER_CELL + 8u)] = {style}; const size_t cell_text_len = 1 + chars_as_utf8(lc, cell_text + 1, arraysz(cell_text) - 1, ' '); fallback_font_map_t_itr fi = vt_get(&fg->fallback_font_map, cell_text); if (!vt_is_end(fi)) return fi.data->val; diff --git a/kitty/line.h b/kitty/line.h index 63d6bfba5..70289dbe5 100644 --- a/kitty/line.h +++ b/kitty/line.h @@ -27,7 +27,7 @@ static_assert(sizeof(CellAttrs) == sizeof(uint32_t), "Fix the ordering of CellAt #define WIDTH_MASK (3u) #define DECORATION_MASK (7u) #define SGR_MASK (~(((CellAttrs){.mark=MARK_MASK}).val)) -#define MAX_NUM_CODEPOINTS_PER_CELL 24 +#define MAX_NUM_CODEPOINTS_PER_CELL 24u // Text presentation selector #define VS15 0xfe0e // Emoji presentation selector