fix(chansvm): make converter callbacks consistently const-correct #1307
Reference in New Issue
Block a user
Delete Branch "agent/fix/chansvm-converter-const"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The new const-source ConvertToFloatFromStr implementation was cast to an incompatible VmConvertFunc type and invoked through that type. Make the callback typedef and all converter source parameters consistently const, propagate read-only headers through array-join helpers, and remove the cast. No executable expressions or compiler flags change.
Verification
Base 20cf9f9f25b13b8cd6910e07cc5eb71558845d4e; independently reviewed and parent verification rerun.
Evidence: tools/decomp-assist/CHANSVm-converter-const-20261009.md. Original binaries/disassembly stay local.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.