From 4c0f41ae732c8808c998b4e0adde11fc79c3ed3f Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 2 Jun 2018 20:16:56 +0100 Subject: [PATCH] vt: avoid pointless signed maths --- Kernel/vt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) { -- 2.34.1