mirror of
https://github.com/copy/v86.git
synced 2026-10-12 02:12:23 +00:00
whoops
This commit is contained in:
@@ -21,7 +21,7 @@ pub trait SafeToU16 {
|
||||
}
|
||||
impl SafeToU16 for usize {
|
||||
fn safe_to_u16(self) -> u16 {
|
||||
dbg_assert!(self <= u8::MAX as usize);
|
||||
dbg_assert!(self <= u16::MAX as usize);
|
||||
self as u16
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user