From c86206d2187b1d1a90556caf2cd6a0ee249bf13f Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Thu, 26 Dec 2019 14:23:21 +0100 Subject: [PATCH] protection against loop with DCompiler.global, fix before rising --- src/u_compilers.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/u_compilers.pas b/src/u_compilers.pas index 850f8f54..e029938c 100644 --- a/src/u_compilers.pas +++ b/src/u_compilers.pas @@ -245,8 +245,8 @@ procedure TCompilersPaths.checkIfGlobalIsGlobal; begin if globalCompiler = DCompiler.global then begin - raise Exception.Create('global compiler should not be set to DCompiler.global'); globalCompiler := low(DCompiler); + raise Exception.Create('global compiler should not be set to DCompiler.global'); end; end;