public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Neil Booth <neil@daikokuya.demon.co.uk>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: c++/6568: g++3 (3.0.2) misinterpreting single byte hex constants
Date: Mon, 06 May 2002 08:26:00 -0000	[thread overview]
Message-ID: <20020506152602.13628.qmail@sources.redhat.com> (raw)

The following reply was made to PR c++/6568; it has been noted by GNATS.

From: Neil Booth <neil@daikokuya.demon.co.uk>
To: Brian Ceccarelli <brian@talusmusic.com>
Cc: neil@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
	nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Subject: Re: c++/6568: g++3 (3.0.2) misinterpreting single byte hex constants
Date: Mon, 6 May 2002 16:22:36 +0100

 Brian Ceccarelli wrote:-
 
 >    i = 0;
 >    n = (-1);
 > 
 >    printf("sizeof(i) = %d\n", sizeof i);
 >    printf("sizeof(n) = %d\n", sizeof n);
 > 
 >    if (n == 0xFF)
 >       printf("Yes.  n = 0x%x\n", n);
 >    else
 >       printf("No.  n = 0x%x\n", n);
 
 Please explain why your test should give "Yes".  I think
 "No" is correct.
 
 Neil.


             reply	other threads:[~2002-05-06 15:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-06  8:26 Neil Booth [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-05-06 13:50 neil
2002-05-06  6:26 Brian Ceccarelli
2002-05-06  5:26 Brian Ceccarelli
2002-05-06  1:26 neil
2002-05-05 20:16 brian

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=20020506152602.13628.qmail@sources.redhat.com \
    --to=neil@daikokuya.demon.co.uk \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@gcc.gnu.org \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).