Missing Data type NativeUInt or UInt64
KaterMusch opened this issue · 2 comments
KaterMusch commented
I'm missing the data types NativeUInt or UInt64. Is there a reason why Int64 exists but UInt64 not? Can anyone help me with this?
Thank you
pult commented
maybe so
uPSCompiler.pas
procedure TPSPascalCompiler.DefineStandardTypes;
{$IFNDEF PS_NOINT64}
AddType('NativeInt', {$IFDEF CPU64}btS64{$ELSE}btS32{$ENDIF});
AddType('NativeUInt', {$IFDEF CPU64}btS64{$ELSE}btU32{$ENDIF});
AddType('UInt64', btS64);
{$ENDIF}
KaterMusch commented
Unfortunately the data type "btS64" is not compatible with an Unsigned Int64. I could already test this.
I think I will try to introduce a new datatype btU64. At first sight it just looks like a lot of writing...hopefully without hidden traps.