Skip to content

6ab6acc does not compile on Delphi older than 10.3 Rio #225

Description

@shmorsecode

Hi!

Compilation fails on Delphi versions older than 10.3 Rio here:

procedure TGpPreciseWait.ActiveWait;
begin
  var togo_ms := FDelay_ms - FStopwatch.ElapsedMilliseconds;

with this error:

[dcc64 Error] GpStuff.pas(3608): E2029 Statement expected but 'VAR' found

I've successfully compiled the code on Delphi 10.2 with this change:

procedure TGpPreciseWait.ActiveWait;
var
  togo_ms: Int64;
begin
  togo_ms := FDelay_ms - FStopwatch.ElapsedMilliseconds;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions