Commit e27538f
Correct
Because `PyInner<T>` struct follows C langauge's representation,
when passing `impl From<PyRef<T>> for PyObjectRef`,
the unsafe function, `NonNull::cast`, harms the `slots` fields.
This reorders the fields to make `payload` field go to the last.PyInner<T> fields order1 parent e7b39bd commit e27538f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | | - | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
0 commit comments