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

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Oct 15 10:56:17 CEST 2009


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.

-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-devel mailing list