u_time: Make time_s_to_ns take double, not floa

This commit is contained in:
Christoph Haag 2021-01-11 18:47:04 +01:00 committed by Jakob Bornecrantz
parent eea8036e91
commit 8f3816a5fc

View file

@ -71,9 +71,9 @@ time_ns_to_s(time_duration_ns ns)
* @ingroup aux_util
*/
static inline time_duration_ns
time_s_to_ns(float duration)
time_s_to_ns(double duration)
{
return (time_duration_ns)((double)duration * (double)U_1_000_000_000);
return (time_duration_ns)(duration * (double)U_1_000_000_000);
}
/*!