Skip to content

Commit 31e0f61

Browse files
committed
PyGILState_Release correction because of diffrent enum size (python vc++ 4bytes, delphi 1byte)
1 parent f5b3ed5 commit 31e0f61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Source/PythonEngine.pas

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,9 @@ TPythonVersionProp = record
765765

766766
{ # of bytes for year, month, day, hour, minute, second, and usecond. }
767767
_PyDateTime_DATETIME_DATASIZE = 10;
768+
PyGILState_LOCKED = 0;
769+
PyGILState_UNLOCKED = 1;
770+
768771
type
769772
PyDateTime_Delta = {$IFNDEF CPUX64}packed{$ENDIF} record
770773
// Start of the Head of an object
@@ -914,7 +917,7 @@ TPythonVersionProp = record
914917
//## GIL state ##
915918
//## ##
916919
//#######################################################
917-
PyGILState_STATE = (PyGILState_LOCKED, PyGILState_UNLOCKED);
920+
PyGILState_STATE = type Integer; // (PyGILState_LOCKED, PyGILState_UNLOCKED);
918921

919922
//#######################################################
920923
//## ##

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy