From: Alan Cox Date: Sat, 2 Jun 2018 19:16:56 +0000 (+0100) Subject: vt: avoid pointless signed maths X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=4c0f41ae732c8808c998b4e0adde11fc79c3ed3f;p=FUZIX.git vt: avoid pointless signed maths --- diff --git a/Kernel/vt.c b/Kernel/vt.c index 36a0b424..68d76281 100644 --- a/Kernel/vt.c +++ b/Kernel/vt.c @@ -6,7 +6,6 @@ #include - /* * Mini vt52 terminal emulation * @@ -116,7 +115,7 @@ static void charout(unsigned char c) if (c == 9) { do { charout(' '); - } while (cursorx%8); + } while (cursorx&7); goto fix; } if (c == 10) {