From 31e0f61c1b1a940a2b0554f4afd490857d3d65cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Repe=C4=87?= Date: Thu, 19 Aug 2021 09:26:21 +0200 Subject: [PATCH] PyGILState_Release correction because of diffrent enum size (python vc++ 4bytes, delphi 1byte) --- Source/PythonEngine.pas | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/PythonEngine.pas b/Source/PythonEngine.pas index b186569c..28ce996b 100644 --- a/Source/PythonEngine.pas +++ b/Source/PythonEngine.pas @@ -765,6 +765,9 @@ TPythonVersionProp = record { # of bytes for year, month, day, hour, minute, second, and usecond. } _PyDateTime_DATETIME_DATASIZE = 10; + PyGILState_LOCKED = 0; + PyGILState_UNLOCKED = 1; + type PyDateTime_Delta = {$IFNDEF CPUX64}packed{$ENDIF} record // Start of the Head of an object @@ -914,7 +917,7 @@ TPythonVersionProp = record //## GIL state ## //## ## //####################################################### - PyGILState_STATE = (PyGILState_LOCKED, PyGILState_UNLOCKED); + PyGILState_STATE = type Integer; // (PyGILState_LOCKED, PyGILState_UNLOCKED); //####################################################### //## ##