Skip to content

Cannot compile under Delphi 12 due to the compiler errors #448

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

Closed
myonlylonely opened this issue Dec 2, 2023 · 2 comments
Closed

Cannot compile under Delphi 12 due to the compiler errors #448

myonlylonely opened this issue Dec 2, 2023 · 2 comments

Comments

@myonlylonely
Copy link

myonlylonely commented Dec 2, 2023

Cannot compile under Delphi 12, the compiler throws an error:

[dcc32 Error] SynCrtSock.pas(5381): E1012 Constant expression violates subrange bounds

It seems this is no longer valid under Delphi 12.

Handle := -1;

We could change that to:

Handle := THandle(-1);

There are 2 lines in SynCrtSock.pas we should change: TCrtSocket.CreateSockIn and TCrtSocket.CreateSockOut

synopse pushed a commit that referenced this issue Dec 3, 2023
- as reported by #448
- with the same fix already included in mORMot 2
@synopse
Copy link
Owner

synopse commented Dec 3, 2023

Please try with the last commit.

Just a backport what we did in mORMot 2.

@myonlylonely
Copy link
Author

Yes, that fixed the compile issue.

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