Commit d7e7549
committed
fix type of Perl_magic_getarylen
This function is used as part of PL_magic_vtables, so its type must be
'int (pTHX_ SV *, MAGIC *)' exactly (no const). With the right type, we
no longer need an ad-hoc cast in mg_vtables.h, which means we no longer
need the 'const' code in regen/mg_vtable.pl, which was a special case
used by this one function only.
Should fix ASan complaints about functions being called with incorrect
types.1 parent 40065a2 commit d7e7549
5 files changed
+5
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1909 | 1909 | | |
1910 | 1910 | | |
1911 | 1911 | | |
1912 | | - | |
| 1912 | + | |
1913 | 1913 | | |
1914 | 1914 | | |
1915 | 1915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2364 | 2364 | | |
2365 | 2365 | | |
2366 | 2366 | | |
2367 | | - | |
| 2367 | + | |
2368 | 2368 | | |
2369 | 2369 | | |
2370 | 2370 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | 248 | | |
254 | 249 | | |
255 | 250 | | |
| |||
277 | 272 | | |
278 | 273 | | |
279 | 274 | | |
280 | | - | |
| 275 | + | |
281 | 276 | | |
282 | 277 | | |
283 | 278 | | |
| |||
528 | 523 | | |
529 | 524 | | |
530 | 525 | | |
531 | | - | |
532 | 526 | | |
533 | 527 | | |
534 | 528 | | |
| |||
0 commit comments