diff options
author | Marvin Borner | 2019-10-27 16:55:30 +0100 |
---|---|---|
committer | Marvin Borner | 2019-10-27 16:55:30 +0100 |
commit | 4aa421786c86f0e50ebcc881fb87580e589fc451 (patch) | |
tree | 6b92a63cc9654f98d1da954c07eaf3b07b830ab9 /src/kernel/timer | |
parent | 654934e0b5e5ef08e6fd337d5ceb864289796c66 (diff) |
Fixed potential int overflow after 50 days
Diffstat (limited to 'src/kernel/timer')
-rw-r--r-- | src/kernel/timer/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 <kernel/io/io.h> #include <kernel/system.h> -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); |