public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ULL fixes for qlogicfc
Date: Mon, 29 Sep 2003 14:24:15 -0700	[thread overview]
Message-ID: <3F78A2FF.6070203@zytor.com> (raw)
In-Reply-To: <3F789FE8.6050504@pobox.com>

Jeff Garzik wrote:
> H. Peter Anvin wrote:
> 
>> 0xffffffff is unsigned int and will be promoted to
> 
> 0xffffffff without a prefix is signed.

No, it's not.

ISO/IEC 9899:1999(E) §6.4.4.1, page 55f:

5 The type of an integer constant is the first of the corresponding list
in which its value can be represented.

Suffix		Decimal Constant	Octal or Hexadecimal
					Constant

none		int			int
		long int 		unsigned int
		long long int		long int
					unsigned long int
					long long int
					unsigned long long int

... so 0x7fffffff is signed int, but 0xffffffff is unsigned int on an
I32-model system (all Linux systems are I32-model.)

	-hpa


  reply	other threads:[~2003-09-29 21:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-29 17:04 [PATCH] ULL fixes for qlogicfc davej
2003-09-29 17:23 ` Jeff Garzik
2003-09-29 17:26   ` Dave Jones
2003-09-29 20:25   ` H. Peter Anvin
2003-09-29 20:33     ` Arjan van de Ven
2003-09-29 21:11       ` Jeff Garzik
2003-09-29 21:11     ` Jeff Garzik
2003-09-29 21:24       ` H. Peter Anvin [this message]
2003-09-29 21:36         ` Jeff Garzik

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=3F78A2FF.6070203@zytor.com \
    --to=hpa@zytor.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.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