From 2f00dd4fbbcaa53e223a01c57ec378ad3dda11c0 Mon Sep 17 00:00:00 2001 From: Brett Gordon Date: Sun, 1 Nov 2015 08:42:52 -0500 Subject: [PATCH] coco3: vt: simplify looping syntax. --- Kernel/platform-coco3/video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/platform-coco3/video.c b/Kernel/platform-coco3/video.c index d56df7b9..58c49fce 100644 --- a/Kernel/platform-coco3/video.c +++ b/Kernel/platform-coco3/video.c @@ -65,7 +65,7 @@ void clear_lines(int8_t y, int8_t ct) map_for_video(); uint16_t *s = (uint16_t *)char_addr(y, 0); uint16_t w = ' ' * 0x100 + curpty->attr; - for( ; wc ; wc-- ) + while( wc-- ) *s++=w; map_for_kernel(); } @@ -75,7 +75,7 @@ void clear_across(int8_t y, int8_t x, int16_t l) map_for_video(); uint16_t *s = (uint16_t *)char_addr(y, x); uint16_t w=' ' * 0x100 + curpty->attr; - for( ; l ; l-- ) + while( l-- ) *s++=w; map_for_kernel(); } -- 2.34.1