Whoops, forgot a few timer_add's there. Crashy!

This commit is contained in:
waltje
2019-04-25 21:09:47 -05:00
parent 00f13aff16
commit 756d227f7a
5 changed files with 15 additions and 17 deletions

View File

@@ -83,7 +83,7 @@ timer_process(void)
enable[c] = *timers[c].enable;
if (enable[c]) {
*timers[c].count = *timers[c].count - diff;
if (*timers[c].count <= 0)
if (*timers[c].count <= 0LL)
process = 1;
}
}
@@ -91,8 +91,8 @@ timer_process(void)
if (! process)
return;
while (1) {
int64_t lowest = 1;
for (;;) {
int64_t lowest = 1LL;
int lowest_c;
for (c = 0; c < present; c++) {