Fix integer overflow bug causing infinite event polling

This commit is contained in:
Shylie 2023-12-25 23:33:27 -05:00
parent 2cb9c0273f
commit 8830cb2a76

View File

@ -93,6 +93,10 @@ void terml_windows::process_events()
}
}
if (num_events_read >= num_events_available)
{
return;
}
num_events_available -= num_events_read;
}
}