We can't accept usize directly, i guess accept MyU64?

This commit is contained in:
Lokathor 2018-12-21 18:20:59 -07:00
parent e8c09a84f8
commit c548dc5b34

View File

@ -777,10 +777,12 @@ fn main() {
} }
// count leading zeros // count leading zeros
gen(|(a): (usize)| { gen(|a: MyU128| {
Some(a.leading_zeros()) Some((a as usize).leading_zeros())
}, },
"builtins::int::__clzsi2(a)"); "{
builtins::int::__clzsi2(a as usize)
}");
} }
macro_rules! gen_float { macro_rules! gen_float {