Skip to content

G70: format Q-number as int#3252

Merged
andypugh merged 1 commit intoLinuxCNC:masterfrom
rmu75:rs/fix-3245
Jan 7, 2025
Merged

G70: format Q-number as int#3252
andypugh merged 1 commit intoLinuxCNC:masterfrom
rmu75:rs/fix-3245

Conversation

@rmu75
Copy link
Collaborator

@rmu75 rmu75 commented Jan 7, 2025

std::to_string is locale dependant (except for int overloads), q_number is a double and can end up being formatted in a way O CALL doesn't like, depending on locale settings. Cast to int (which is used elsewhere to store o-numbers) to avoid that. Should probably be unsigned.

fixes #3245

@andypugh andypugh merged commit 4be5226 into LinuxCNC:master Jan 7, 2025
10 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.

G70 not running with QtDragon on current master

2 participants