Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bf1f4a8 authored by Adam Borowski's avatar Adam Borowski Committed by Greg Kroah-Hartman
Browse files

vt: Make a comparison <= for readability.



All other uses of vc_npar are inclusive (save for < NPAR) which raises
eyebrows, so let's at least do so consistently.

Signed-off-by: default avatarAdam Borowski <kilobyte@angband.pl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 669e0a51
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1312,7 +1312,7 @@ static int vc_t416_color(struct vc_data *vc, int i,
	if (i > vc->vc_npar)
		return i;

	if (vc->vc_par[i] == 5 && i < vc->vc_npar) {
	if (vc->vc_par[i] == 5 && i + 1 <= vc->vc_npar) {
		/* 256 colours -- ubiquitous */
		i++;
		rgb_from_256(vc->vc_par[i], &c);