Re: Four or Two Bytes?
- From: Kenneth Brody <kenbrody@xxxxxxxxxxx>
- Date: Fri, 30 May 2008 13:30:21 -0400
Joachim Schmitz wrote:
Martin wrote:
On Fri, 30 May 2008 10:19:31 +0100, Joachim SchmitzYes it might have, but how likely is it that a data type is really larger
<nospam.jojo@xxxxxxxxxxxxxxxxxx> wrote:
Guess Keith's point is that you should cast it to whatever the format
specified expects.
I'll wait for Keith's response, but I would say that sometimes it may
be better to change the format specified. Casting an unsigned type to
signed type of equal or less width has the potential for data loss.
than INT_MAX?
As I recall, "huge model" on real-mode x86 processors use 32-bit
pointers, yet 16-bit ints. As such, I would expect that size_t
could hold values larger than INT_MAX.
--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody | www.hvcomputer.com | #include |
| kenbrody/at\spamcop.net | www.fptech.com | <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------+
Don't e-mail me at: <mailto:ThisIsASpamTrap@xxxxxxxxx>
.
- Follow-Ups:
- Re: Four or Two Bytes?
- From: Keith Thompson
- Re: Four or Two Bytes?
- References:
- Four or Two Bytes?
- From: Hahnemann
- Re: Four or Two Bytes?
- From: Chris McDonald
- Re: Four or Two Bytes?
- From: Hahnemann
- Re: Four or Two Bytes?
- From: Keith Thompson
- Re: Four or Two Bytes?
- From: Martin
- Re: Four or Two Bytes?
- From: Joachim Schmitz
- Re: Four or Two Bytes?
- From: Martin
- Re: Four or Two Bytes?
- From: Joachim Schmitz
- Four or Two Bytes?
- Prev by Date: Help with atoi function for a numero program.
- Next by Date: Re: Help with atoi function for a numero program.
- Previous by thread: Re: Four or Two Bytes?
- Next by thread: Re: Four or Two Bytes?
- Index(es):
Relevant Pages
|