Skip to content
Commit 2c1f184d authored by Jordan Yates's avatar Jordan Yates Committed by Christopher Friedt
Browse files

lib: timeutil: fix conversion drift



Fix conversion drifts for large deltas by only applying float
operations when the skew requires it. This helps because not all
integers are representable as floats, so large integers are
neccessarily quantised when performing float operations.

When required, floating-point operations are now performed on doubles
instead of floats.

Fixes #37263.

Signed-off-by: default avatarJordan Yates <jordan.yates@data61.csiro.au>
parent d2363be0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment