From 4aa421786c86f0e50ebcc881fb87580e589fc451 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 27 Oct 2019 16:55:30 +0100 Subject: Fixed potential int overflow after 50 days --- src/kernel/timer/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/kernel/timer/timer.c b/src/kernel/timer/timer.c index 151790e..90a74cf 100644 --- a/src/kernel/timer/timer.c +++ b/src/kernel/timer/timer.c @@ -2,7 +2,7 @@ #include #include -static unsigned int timer_ticks = 0; +static unsigned long timer_ticks = 0; void timer_phase(int hz) { int divisor = (int) (3579545.0 / 3.0 / (double) hz); -- cgit v1.2.3