[fpc-devel] Cardinal = LongWord on 64bit systems?

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Oct 15 11:03:38 CEST 2009


On Thu, 15 Oct 2009 10:56:17 +0200
Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:

> On 15/10/2009, Michael Van Canneyt <michael at freepascal.org> wrote:
> >
> >  Where do you see that ? Not in my docs ?
> 
> Ah, I was viewing an old v2.0.2 ref.pdf document. I see the newer
> ref.pdf (Table 3.2) is now different and clearly mentions that
> Cardinal is always a 32bit type (LongWord). I'll make sure I delete
> all old FPC pdf documents lying around to not make that mistake again.
> 
> So if I want to use a unsigned integer (pointer) type and be correct
> on each platform, must I use the ValUInt type instead? See my
> GetMem/FreeMem thread for an example.

PtrUInt

About PLong: use unit ctypes: PCLong


Mattias
 



More information about the fpc-devel mailing list