Movatterモバイル変換


[0]ホーム

URL:


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

Commit216c705

Browse files
filmorlostmsu
authored andcommitted
Fix the PyGILState_STATE type
CPython uses a bare `enum` here, both of .NET and C default to `int`enums, so this should be closer to the truth if no special compileoptions are used.
1 parent806f79e commit216c705

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

‎src/runtime/native/PyGILState.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
usingSystem;
2-
usingSystem.Runtime.InteropServices;
3-
41
namespacePython.Runtime.Native;
52

63
/// <remarks><c>PyGILState_STATE</c></remarks>
7-
[StructLayout(LayoutKind.Sequential)]
8-
structPyGILState
4+
enumPyGILState
95
{
10-
IntPtrhandle;
6+
PyGILState_LOCKED,
7+
PyGILState_UNLOCKED
118
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp