mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 18:21:45 +00:00
The cast from f32::MAX to u32 was undefined behaviour, and the use of floating point logarithms would yield incorrect results due to rounding and truncation, e.g. for the integer 16777206