From d71788c40206fa35b792d34769fde7768b4456c1 Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 21 Jul 2005 06:31:02 +0000 Subject: (svn r2660) Get rid of some more shifting/anding/casting --- news_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'news_gui.c') diff --git a/news_gui.c b/news_gui.c index 08d284304..3886879cf 100644 --- a/news_gui.c +++ b/news_gui.c @@ -579,7 +579,7 @@ static void DrawNewsString(int x, int y, uint16 color, const NewsItem *ni, uint /* Copy the just gotten string to another buffer to remove any formatting * from it such as big fonts, etc. */ for (ptr = buffer, dest = buffer2; *ptr != '\0'; ptr++) { - if ((byte)*ptr == '\r') { + if (*ptr == '\r') { dest[0] = dest[1] = dest[2] = dest[3] = ' '; dest += 4; } else if ((byte)*ptr >= ' ' && ((byte)*ptr < 0x88 || (byte)*ptr >= 0x99)) { -- cgit v1.2.3-70-g09d2