Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2005-01

[fpc-1.9.6-0.x86_64] sizeof(integer)

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Henri Gourvest

sizeof(integer) return 2.
It is a bit strange for me :-/
Perhaps there is some tips I have to know before porting applications to 64 bits.

Thanks

Henri

Florian Klaempfl
to Henri Gourvest
Henri Gourvest wrote
sizeof(integer) return 2. It is a bit strange for me :-/ Perhaps there is some tips I have to know before porting applications to 64 bits.

Sizeof(integer) depends only on the language mode (standard,tp=2; objfpc,delphi=4) this makes usually porting easier. If you want an integer with the same size as a pointer use ptrint.