Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b70892

Browse files
committed
Update CHANGELOG, remove extra MarshalAs
1 parent 8ff338a commit 9b70892

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ This document follows the conventions laid out in [Keep a CHANGELOG][].
4747
- Fixed wrong version number in `conda.recipe` (#398)
4848
- Fixed fixture location for Python tests and `Embedded_Tests`
4949
- Fixed `PythonException` crash during Shutdown (#400)
50+
- Fixed `Py_Main` & `PySys_SetArgvEx` no mem error on `UCS4/PY3` (#399)
5051

5152
### Removed
5253

src/runtime/runtime.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ internal unsafe static extern IntPtr
667667
public unsafe static extern int
668668
Py_Main(
669669
int argc,
670-
[MarshalAs(UnmanagedType.SysUInt)] IntPtr lplpargv
670+
IntPtr lplpargv
671671
);
672672

673673
public static int Py_Main(int argc, string[] argv)
@@ -2120,7 +2120,7 @@ internal unsafe static extern IntPtr
21202120
internal unsafe static extern void
21212121
PySys_SetArgvEx(
21222122
int argc,
2123-
[MarshalAs(UnmanagedType.SysUInt)] IntPtr lplpargv,
2123+
IntPtr lplpargv,
21242124
int updatepath
21252125
);
21262126

0 commit comments

Comments
 (0)