From 23d06a17f8a4033be57ca46079e5c3e65fa9e845 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Fri, 27 Apr 2018 10:04:26 +0300 Subject: various minor improvements. --- src/tempmodule/temperature.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tempmodule/temperature.c') diff --git a/src/tempmodule/temperature.c b/src/tempmodule/temperature.c index 684f654..c95807b 100644 --- a/src/tempmodule/temperature.c +++ b/src/tempmodule/temperature.c @@ -81,7 +81,7 @@ int get_temperature(int res) } /* Returns the last 0-10 part of the temperature, in 0.1°K. */ -int get_temp_subrange(short a, short b, int res) +int get_temp_subrange(int a, int b, int res) { return (res - a) * 100 / (b - a); } -- cgit v1.2.3