From aa87b54d432eb7b5a47c247291bd7cf39934219c Mon Sep 17 00:00:00 2001 From: Michal Suchanek Date: Tue, 26 Dec 2023 20:54:52 +0100 Subject: [PATCH] sensors: Also avoid conversion from double to float for Fahrenheit Fixes: 868fd8d0 ("Avoid the conversions from double to float.") --- prog/sensors/chips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prog/sensors/chips.c b/prog/sensors/chips.c index adea0aaf..1f1beaf2 100644 --- a/prog/sensors/chips.c +++ b/prog/sensors/chips.c @@ -36,7 +36,7 @@ static void scale_value(double *value, const char **prefixstr); static inline double deg_ctof(double cel) { - return cel * (9.0F / 5.0F) + 32.0F; + return cel * (9.0 / 5.0) + 32.0; } void print_chip_raw(const sensors_chip_name *name)