FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Apply alignment fix · Virtual0ps/pythonnet@e10d333 · GitHub

Repository navigation

Commit e10d333

Browse files
committed
Apply alignment fix
1 parent caac33d commit e10d333

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎src/runtime/Native/TypeOffset314.cs‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,14 @@ public TypeOffset314() { }
7575
public int tp_version_tag { get; private set; }
7676
public int tp_finalize { get; private set; }
7777
public int tp_vectorcall { get; private set; }
78+
// This is an error in our generator:
79+
//
80+
// The fields below are actually not pointers (like we incorrectly
81+
// assume for all other fields) but instead a char (1 byte) and a short
82+
// (2 bytes). By dropping one of the fields, we still get the correct
83+
// overall size of the struct.
7884
public int tp_watched { get; private set; }
79-
public int tp_versions_used { get; private set; }
85+
// public int tp_versions_used { get; private set; }
8086
public int am_await { get; private set; }
8187
public int am_aiter { get; private set; }
8288
public int am_anext { get; private set; }

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL