1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-02-17 14:40:31 +00:00

Another bugfix for input_delay

This commit is contained in:
jugeeya 2022-05-03 17:52:49 -07:00 committed by GitHub
parent fb6de31aa4
commit 92a3d5711d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1004,7 +1004,10 @@ macro_rules! set_by_str {
const fn num_bits<T>() -> usize { std::mem::size_of::<T>() * 8 }
fn log_2(x: u32) -> u32 {
num_bits::<u32>() as u32 - x.leading_zeros() - 1
if x == 0 { 0 }
else {
num_bits::<u32>() as u32 - x.leading_zeros() - 1
}
}
impl TrainingModpackMenu {