summaryrefslogtreecommitdiffstats
path: root/src/tempmodule/temperature.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tempmodule/temperature.c')
-rw-r--r--src/tempmodule/temperature.c2
1 files changed, 1 insertions, 1 deletions
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);
}