mirror of https://github.com/nirenjan/libx52.git
fix: Remove redundant condition in scroll.c
parent
130a1f67de
commit
a710ab5591
|
|
@ -46,10 +46,7 @@ static uint8_t tape_byte(const struct libx52util_scroll *st, size_t index)
|
||||||
if (index < st->text_len) {
|
if (index < st->text_len) {
|
||||||
return st->text[index];
|
return st->text[index];
|
||||||
}
|
}
|
||||||
index -= st->text_len;
|
/* Remaining tape cells: suffix-width trailing pad (spaces). */
|
||||||
if (index < st->suffix) {
|
|
||||||
return (uint8_t)' ';
|
|
||||||
}
|
|
||||||
return (uint8_t)' ';
|
return (uint8_t)' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue