Skip to content

hal: Update iocontrol to 64-bit clean operation - #4808

Merged
grandixximo merged 1 commit into
LinuxCNC:masterfrom
BsAtHome:hal64_iocontrol
Nov 9, 2026
Merged

grandixximo merged 1 commit into
LinuxCNC:masterfrom
BsAtHome:hal64_iocontrol

Conversation

@BsAtHome

@BsAtHome BsAtHome commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

This update to iocontrol is mostly trivial. Almost all HAL accesses are hal_set_*() operations that get extended automatically on write.
There was exactly one hal_get_si32(), which has been replaced by hal_get_si32_clamped(). The value read is an index that is not expected to be too large/small. However, in the internal handling it is assigned to int, where it could get inappropriately truncated. Better have it clamp to the default int size.

@grandixximo
grandixximo merged commit cc3097b into LinuxCNC:master Nov 9, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants