Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Data type NativeUInt or UInt64 #229

Open
KaterMusch opened this issue Apr 29, 2020 · 2 comments
Open

Missing Data type NativeUInt or UInt64 #229

KaterMusch opened this issue Apr 29, 2020 · 2 comments

Comments

@KaterMusch
Copy link

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
Copy link

pult commented Apr 30, 2020

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
Copy link
Author

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.

pult added a commit to pult/pascalscript that referenced this issue Apr 30, 2020
TODO: add type tbtU64(UInt64) of processing.
Missing Data type NativeUInt or UInt64 remobjects#229
remobjects#229
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants