From: Glynn Clements <glynn@gclements.plus.com>
To: a.biardi@tiscali.it
Cc: linux-c-programming@vger.kernel.org
Subject: Re: decimal constant so large?
Date: Tue, 31 May 2005 14:15:33 +0100 [thread overview]
Message-ID: <17052.25461.832292.512017@gargle.gargle.HOWL> (raw)
In-Reply-To: <200505281850.57908.a.biardi@tiscali.it>
a.biardi@tiscali.it wrote:
> Can anyone tell me why the constant -2147483648,
-2147483648 isn't a constant, it's an expression consisting of the
negation operator "-" applied to the decimal constant "2147483648".
The decimal constant 2147483648 is too large to fit into a signed
32-bit integer, so it is treated as unsigned.
If you want the most negative signed 32-bit integer, you have to write
it as (-2147483647 - 1).
--
Glynn Clements <glynn@gclements.plus.com>
next prev parent reply other threads:[~2005-05-31 13:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-28 17:50 decimal constant so large? a.biardi
2005-05-31 13:15 ` Glynn Clements [this message]
2005-05-31 23:15 ` Training Darren Sessions
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=17052.25461.832292.512017@gargle.gargle.HOWL \
--to=glynn@gclements.plus.com \
--cc=a.biardi@tiscali.it \
--cc=linux-c-programming@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;
as well as URLs for NNTP newsgroup(s).