[Lazarus] C Integer types

Hans-Peter Diettrich DrDiettrich1 at aol.com
Sun Jul 8 07:01:13 CEST 2012

Dave Coventry schrieb:
> Can I assume that you hadn't noticed that compr_len   =
> *((int32_t*)&data[24]); was a 32 bit integer?

Right, such errors suggest the use of translation tools instead of 
manual translation.

> Is there such a thing as pint32? (Google suggests that a pint is 32 half-ounces)


> compr_len:=pint64(@data[24])^;

int32_t* is definitely a pointer to an 32 bit signed integer. You can 
create this type yourself, if it doesn't exist.


More information about the Lazarus mailing list