Skip to content

test: Convert to float explicitly in test_volume_meter_snapshot - #452

Closed
zackees wants to merge 1 commit into
masterfrom
fix/volume-meter-test-msvc
Closed

zackees wants to merge 1 commit into
masterfrom
fix/volume-meter-test-msvc

Conversation

@zackees

@zackees zackees commented Oct 13, 2026

Copy link
Copy Markdown
Member

Master's Windows Tier 2 fails to build: test/cmocka/test_volume_meter_snapshot.cpp(24..27): warning C4244: '=': conversion from 'int' to 'float', an error under /WX (C2220). Seen on #440, run 38342295990. #442 added the test and merged without a Windows Tier 2 run.

The fix uses static_cast<float>(i), with no change to what the test checks.

This PR isn't stamped: master's local rust-test lane is red until #450 merges. CI runs the full jobs instead, including Tier 2 on Windows, because the PR touches test/cmocka and isn't attested.

MSVC builds the cmocka tests with warnings as errors, and the int to
float assignments (C4244) broke the Windows Tier 2 build since #442,
which merged without a Windows run.
@zackees

zackees commented Oct 13, 2026

Copy link
Copy Markdown
Member Author

Folded into #450. Each fix was blocking the other's CI: this one needs #450's lane fix to pass Rust Tests (Linux), and #450 needs this one to pass Windows Tier 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant