}
*visual_list_ptr = true;
- *attr_top_ptr = std::max<byte>(0, (*cur_attr_ptr & 0x7f) - 5);
- *char_left_ptr = std::max<byte>(0, *cur_char_ptr - 10);
+ *attr_top_ptr = std::max<int8_t>(0, (*cur_attr_ptr & 0x7f) - 5);
+ *char_left_ptr = std::max<int8_t>(0, *cur_char_ptr - 10);
attr_old = *cur_attr_ptr;
char_old = *cur_char_ptr;
return true;
case 'p': {
if (attr_idx || (!(char_idx & 0x80) && char_idx)) {
*cur_attr_ptr = attr_idx;
- *attr_top_ptr = std::max<byte>(0, (*cur_attr_ptr & 0x7f) - 5);
+ *attr_top_ptr = std::max<int8_t>(0, (*cur_attr_ptr & 0x7f) - 5);
if (!*visual_list_ptr) {
*need_redraw = true;
}
if (char_idx) {
/* Set the char */
*cur_char_ptr = char_idx;
- *char_left_ptr = std::max<byte>(0, *cur_char_ptr - 10);
+ *char_left_ptr = std::max<int8_t>(0, *cur_char_ptr - 10);
if (!*visual_list_ptr) {
*need_redraw = true;
}