Re: C++ integral types on 64-bit Windows
From: Arnaud Debaene (adebaene_at_club-internet.fr)
Date: 04/03/04
- Previous message: Scott McPhillips [MVP]: "Re: variables using ClassView and Class wizard"
- In reply to: George: "Re: C++ integral types on 64-bit Windows"
- Next in thread: Hendrik Schober: "Re: C++ integral types on 64-bit Windows"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 3 Apr 2004 22:03:07 +0200
George wrote:
> MerkX Zyban,
>
> Let the DWORD to be a 32-bit everywhere,
> but why 'long' should be a 32-bit integer under a 64-bit platform?
> And what about portability across non-windows platforms (all of them
> have 64-bit long) ?
> It makes 'long' unusable at all !
"long" is a C type, and C standard only prescribes *minimum* size
requirements for primitive types (it does it indirectly by specifying
minimum ranges of values). Therefore, anyone who say that long is >= 32 bits
is right.
Arnaud
MVP - VC
- Previous message: Scott McPhillips [MVP]: "Re: variables using ClassView and Class wizard"
- In reply to: George: "Re: C++ integral types on 64-bit Windows"
- Next in thread: Hendrik Schober: "Re: C++ integral types on 64-bit Windows"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|