Commit a007ec7
committed
fix(generator): handle ptrdiff_t type correctly in C type mapping
Adds special case handling for ptrdiff_t in getCType function to preserve its
type name rather than converting it to a Go equivalent.
This fixes type mismatch errors on macOS where ptrdiff_t is a distinct type
from int64_t despite having the same size.1 parent 11c9448 commit a007ec7
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14172 | 14172 | | |
14173 | 14173 | | |
14174 | 14174 | | |
14175 | | - | |
| 14175 | + | |
14176 | 14176 | | |
14177 | 14177 | | |
14178 | 14178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
| |||
0 commit comments