From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Mon, 27 Feb 2012 23:40:13 -0500 To: 9fans@9fans.net Message-ID: <8f46f79042d0cf94c0309c883a046dd6@brasstown.quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] 6c bug? Topicbox-Message-UUID: 64ee683c-ead7-11e9-9d60-3106f5b1d025 for p = uchar*, Nbus==256, if((uint)p[1] >= Nbus){ generates warning: ./mp.c:212 useless or misleading comparison: UCHAR >= 0x100 i'm pretty sure that 6c is incorrectly issuing the diagnostic before applying the cast. (the cast is there to shut the compiler up.) - erik