Skip to content

Fix a casting bug in GetNumberOfInstalledSections#266

Merged
kelly-nelson merged 1 commit into
ADAPT:developfrom
adv12:DoubleToUint
Feb 4, 2026
Merged

Fix a casting bug in GetNumberOfInstalledSections#266
kelly-nelson merged 1 commit into
ADAPT:developfrom
adv12:DoubleToUint

Conversation

@adv12

@adv12 adv12 commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

Looks like in .NET 10 on Windows, casting a negative double directly to uint behaves like it already did on ARM Macs. Had to add an intermediate cast to int to make CondensedworkStateMeterCreator.GetNumberOfInstalledSections to work properly. This mirrors a cast earlier in the file marked with a comment about the ARM Mac behavior.

@kelly-nelson

Copy link
Copy Markdown
Contributor

Looks good to me. @strhea ?

@strhea

strhea commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

@kelly-nelson I'm good with it.

@adv12

adv12 commented Feb 3, 2026

Copy link
Copy Markdown
Contributor Author

Any ETA on pulling this in/rolling a release?

@kelly-nelson kelly-nelson merged commit 66460f4 into ADAPT:develop Feb 4, 2026
1 check 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.

3 participants