9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] 6c bug?
@ 2012-02-28  4:40 erik quanstrom
  2012-02-28  7:14 ` Bruce Ellis
       [not found] ` <CAJQxxw=AN0dUGdu_sbdOc2Vkew3BXWPhvTOAxKKLgjHGxpxVjw@mail.gmail.c>
  0 siblings, 2 replies; 5+ messages in thread
From: erik quanstrom @ 2012-02-28  4:40 UTC (permalink / raw)
  To: 9fans

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-28 18:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-28  4:40 [9fans] 6c bug? erik quanstrom
2012-02-28  7:14 ` Bruce Ellis
     [not found] ` <CAJQxxw=AN0dUGdu_sbdOc2Vkew3BXWPhvTOAxKKLgjHGxpxVjw@mail.gmail.c>
2012-02-28  7:20   ` erik quanstrom
2012-02-28  9:22     ` Bruce Ellis
     [not found]     ` <CAJQxxwka-EGOgyTV-xBB1YOWTXLzyL=qtRWDkfz0NmD82koFpQ@mail.gmail.c>
2012-02-28 18:37       ` erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).