fix: assert de-optimization bug

This commit is contained in:
Shunsuke Shibayama 2024-01-21 13:10:47 +09:00
parent cfc2214bfb
commit 20a94b806a
4 changed files with 8 additions and 5 deletions

View file

@ -33,6 +33,7 @@ pub const fn get_ver_from_magic_num(magic_num: u32) -> PythonVersion {
3420..=3425 => PythonVersion::new(3, Some(9), Some(0)),
3430..=3439 => PythonVersion::new(3, Some(10), Some(0)), // main: 3439
3495 => PythonVersion::new(3, Some(11), Some(0)),
3531 => PythonVersion::new(3, Some(12), Some(0)),
_ => panic!("unknown magic number"),
}
}