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
OjectFLED: dead '>= 0' guards on unsigned variables (OjectFLED.cpp.hpp:676,690) — latent logic bug #2726
Fires on every Teensy 4.x build (teensy40, teensy41, teensy_octoWS2811).
Why it is not noise
The guard is dead code — it never excludes any value. Either:
The variable was originally int/int32_t and someone migrated to unsigned without removing the >= 0 check, OR
The author meant to write <= MAX and typoed.
Either way it is a latent logic bug indicator. Worth a 5-minute review.
Proposed fix
Read both call sites at 676 and 690; drop the >= 0 clause (if the signed->unsigned migration was intentional) or fix the bound to whatever was meant. Since this is vendored upstream code (third_party/object_fled/), consider also reporting/PRing the fix upstream and pulling it back.
Activity
zackees commentedon Jun 4, 2026
Tracked under fbuild meta-audit: FastLED/fbuild#408
fix(third_party/object_fled): cast `size` to int in drawSquare indexi…
fix(third_party/object_fled): cast `size` to int in drawSquare bounds…