]> Repositorios git - scryer-prolog.git/commit
fix `function_casts_as_integer` warning
authorSkgland <[email protected]>
Thu, 27 Nov 2025 19:07:13 +0000 (20:07 +0100)
committerBennet Bleßmann <[email protected]>
Thu, 4 Dec 2025 22:35:23 +0000 (23:35 +0100)
commit797a8f86110b846c4c5201c7888774132143ec62
tree20fe41e37100fecd07edb5abd87a7af8594c4603
parentf570e566f83c4bb5a45269152bc506a79199b083
fix `function_casts_as_integer` warning

Comparing addresses of function pointers is brittle.

Functions may be duplicated resulting in function pointers to the same function to compare !=.
Functions may be merged/de-duplicated resulting in function pointers to different function to compare ==.

The later shouldn't be relevant here as the function differ in behavior, but mentioning it for completeness.
src/machine/dispatch.rs
src/machine/machine_state.rs
src/machine/machine_state_impl.rs
src/machine/partial_string.rs
src/machine/system_calls.rs
src/macros.rs