Fixed three instances of undefined behavior.

This commit is contained in:
OBattler
2022-02-20 20:30:20 +01:00
parent 3b5be8b619
commit f19aaa14ae
3 changed files with 4 additions and 4 deletions

View File

@@ -222,7 +222,7 @@ find_best_interrupt(pic_t *dev)
if (dev == &pic2)
intr += 8;
if (cpu_fast_off_flags & (1 << intr))
if (cpu_fast_off_flags & (1u << intr))
cpu_fast_off_count = cpu_fast_off_val + 1;
}