You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build: master's macOS build is red in shared/qt/platform/qt-host-macos.cpp.hpp's modifier return (#2625, #2872) #2946
Build break (conversion diagnostic), no behaviour change: obsModifiers is int and the function returns uint32_t; every INTERACT_* flag is a non-negative constant, so the returned value is unchanged.
How it is reached
Every macOS app build with the conversion ratchet on (#2625/#2872). Found on master f67176296 in the scheduled.yaml run 40915924585, job Build 🧱 / macOS 🍏 (x86_64) (123597371164):
shared/qt/platform/qt-host-macos.cpp.hpp:43:9: error: implicit conversion changes signedness:
'int' to 'uint32_t' (aka 'unsigned int') [-Werror,-Wsign-conversion]
43 | return obsModifiers;
| ^~~~~~~~~~~~
Build 🧱 / macOS 🍏 (arm64) and Analyze 🔬 / macOS 🍏 (clang-analyze) in the same run compile the same file and are the next lanes to look at once this one is stated. The obs-outputs conversions this run also reported (mp4-mux.c.h, rtmp-hevc.c.h) are already fixed on master by #2922 and #2925.
Proposed fix and failing test
The same statement the POSIX sibling already carries (commit 5298ad7ec, #2900):
returnstatic_cast<uint32_t>(obsModifiers);
shared/qt/platform/qt-host-posix.cpp.hpp:47 was stated that way and the local stays int, so the macOS file matches its sibling and nothing else changes. The windows sibling has the same unstated return, but MSVC's /W4 does not enable -Wsign-conversion, so it is not reported by any lane and is left alone here.
RED: the job above. GREEN: a scheduled.yamlworkflow_dispatch on the fixing branch with the three macOS jobs past qt-host-macos.cpp.hpp (a PR run does not select the macOS app build).
Tiers that do not apply: no Rust unit, C test, protocol or runtime behaviour change; no C test or public header is touched.
One PR: static_cast<uint32_t>(obsModifiers) in shared/qt/platform/qt-host-macos.cpp.hpp, the statement qt-host-posix.cpp.hpp:47 already carries — no local-type change, no flag, pin or target change.
Evidence: a scheduled.yamlworkflow_dispatch on the fixing branch, because a PR run does not select the macOS app build; the green condition is the three macOS jobs getting past this file.
Activity
zackees commentedon Oct 29, 2026
Claiming: the macOS Qt host's modifier return
Plan:
static_cast<uint32_t>(obsModifiers)inshared/qt/platform/qt-host-macos.cpp.hpp, the statementqt-host-posix.cpp.hpp:47already carries — no local-type change, no flag, pin or target change.scheduled.yamlworkflow_dispatchon the fixing branch, because a PR run does not select the macOS app build; the green condition is the three macOS jobs getting past this file.First PR within the hour.
build(qt): state the macOS host's modifier return conversion (obs-rus…