mirror of
https://github.com/esphome/esphome.git
synced 2026-09-14 16:48:40 +00:00
8ef105767424419184be06795a767df2891b299c
-0.0f has bit pattern 0x80000000 which exceeds ONE_F_BITS as unsigned, so the check previously flagged it and emitted a spurious out-of-range warning. Add an explicit compare against NEG_ZERO_F_BITS (declared as a named constexpr for readability) so -0.0f takes the in-range fast path. clamp_unit_float() already returned 0.0f for it via the sign-bit branch, so behavior on clamp is unchanged. Caught by Copilot on PR review.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
603 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
