| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,6 +28,7 @@ This document follows the conventions laid out in [Keep a CHANGELOG][]. | |||
| 28 | 28 | to esily detect GC related bugs. | |
| 29 | 29 | - Fixed secondary PythonEngine.Initialize call, all sensitive static variables now reseted. | |
| 30 | 30 | This is a hidden bug. Once python cleaning up enough memory, objects from previous engine run becomes corrupted. | |
| 31 | + - Fixed interop methods with Py_ssize_t. NetCoreApp 2.0 is more sensitive than net40 and requires this fix. | ||
| 31 | 32 | - Fixed Visual Studio 2017 compat (#434) for setup.py | |
| 32 | 33 | - Fixed crash on exit of the Python interpreter if a python class | |
| 33 | 34 | derived from a .NET class has a `__namespace__` or `__assembly__` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -69,10 +69,8 @@ public void TestRepeat() | |||
| 69 | 69 | PyObject actual = t1.Repeat(3); | |
| 70 | 70 | Assert.AreEqual("FooFooFoo", actual.ToString()); | |
| 71 | 71 | ||
| 72 | - // On 32 bit system this argument should be int, but on the 64 bit system this should be long value. | ||
| 73 | - // This works on the Framework 4.0 accidentally, it should produce out of memory! | ||
| 74 | - // actual = t1.Repeat(-3); | ||
| 75 | - // Assert.AreEqual("", actual.ToString()); | ||
| 72 | + actual = t1.Repeat(-3); | ||
| 73 | + Assert.AreEqual("", actual.ToString()); | ||
| 76 | 74 | } | |
| 77 | 75 | ||
| 78 | 76 | [Test] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -276,7 +276,7 @@ public static void SetError(Exception e) | |||
| 276 | 276 | /// </remarks> | |
| 277 | 277 | public static bool ErrorOccurred() | |
| 278 | 278 | { | |
| 279 | - return Runtime.PyErr_Occurred() != 0; | ||
| 279 | + return Runtime.PyErr_Occurred() != IntPtr.Zero; | ||
| 280 | 280 | } | |
| 281 | 281 | ||
| 282 | 282 | /// <summary> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments