From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] 6c bug?
Date: Tue, 28 Feb 2012 02:20:35 -0500 [thread overview]
Message-ID: <42581047d9bdd824d7f8f43f30636feb@chula.quanstro.net> (raw)
In-Reply-To: <CAJQxxw=AN0dUGdu_sbdOc2Vkew3BXWPhvTOAxKKLgjHGxpxVjw@mail.gmail.c>
On Tue Feb 28 02:16:04 EST 2012, bruce.ellis@gmail.com wrote:
> what values of p[1] do you expect the test to be of use?
>
> On 28 February 2012 15:40, erik quanstrom <quanstro@quanstro.net> wrote:
> > 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.)
it is not a given that Nbus >= 255.
- erik
next prev parent reply other threads:[~2012-02-28 7:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-28 4:40 erik quanstrom
2012-02-28 7:14 ` Bruce Ellis
[not found] ` <CAJQxxw=AN0dUGdu_sbdOc2Vkew3BXWPhvTOAxKKLgjHGxpxVjw@mail.gmail.c>
2012-02-28 7:20 ` erik quanstrom [this message]
2012-02-28 9:22 ` Bruce Ellis
[not found] ` <CAJQxxwka-EGOgyTV-xBB1YOWTXLzyL=qtRWDkfz0NmD82koFpQ@mail.gmail.c>
2012-02-28 18:37 ` erik quanstrom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42581047d9bdd824d7f8f43f30636feb@chula.quanstro.net \
--to=quanstro@quanstro.net \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).