Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RpcValue: Cast bools to ints as 0 #543

Merged
merged 1 commit into from
Jan 4, 2025
Merged

RpcValue: Cast bools to ints as 0 #543

merged 1 commit into from
Jan 4, 2025

Conversation

syyyr
Copy link
Contributor

@syyyr syyyr commented Dec 16, 2024

Casting bools to ints never makes sense. The reason I found is in the checkAlarms algorithm, where if you put a boolean as value, it could later be interpreted as a bitfield, because of this implicit conversion. It'll still do it now, but at least it won't result in true which will stop it from deducing invalid alarms.

Casting bools to ints never makes sense. The reason I found is in the
checkAlarms algorithm, where if you put a boolean as `value`, it could later be
interpreted as a bitfield, because of this implicit conversion. It'll still do
it now, but at least it won't result in `true` which will stop it from deducing
invalid alarms.
@fvacek fvacek merged commit 36b0b4b into master Jan 4, 2025
11 checks passed
@fvacek
Copy link
Contributor

fvacek commented Jan 4, 2025

Hopefully this doesn't break FL

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