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
This repository was archived by the owner on Jul 22, 2023. It is now read-only.
/pythonnetPublic archive
forked frompythonnet/pythonnet

Commitca99b17

Browse files
committed
Remove Runtime._UCS dependency from CustomMarshaler
1 parent52caf17 commitca99b17

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎Python.Runtime/CustomMarshaler.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ public static int GetUnicodeByteLength(IntPtr p)
9191
varlen=0;
9292
while(true)
9393
{
94-
intc=Runtime._UCS==2
95-
?Marshal.ReadInt16(p,len*2)
96-
:Marshal.ReadInt32(p,len*4);
94+
#ifUCS2
95+
intc=Marshal.ReadInt16(p,len*2);
96+
#else
97+
intc=Marshal.ReadInt32(p,len*4);
98+
#endif
9799

98100
if(c==0)
99101
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp