Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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)

AltStyle によって変換されたページ (->オリジナル) /