Commit f17fb4b
refactor: Typed long* getinfo shim + keep CString cast (review)
- Replace the void* getinfo shim with a typed uni_curl_easy_getinfo_long(long*)
so the response-code out-pointer isn't passed through an unsafe void* cast.
- Restore the explicit .asInstanceOf[Ptr[Byte]] on the CString setopt path for
cross-version clarity (CString = Ptr[CChar]).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 5e680f0 commit f17fb4b
2 files changed
Lines changed: 5 additions & 4 deletions
File tree
- uni/.native/src/main
- resources/scala-native
- scala/wvlet/uni/http
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
0 commit comments