Skip to content

Commit c548dc5

Browse files
committed
We can't accept usize directly, i guess accept MyU64?
1 parent e8c09a8 commit c548dc5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

testcrate/build.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -777,10 +777,12 @@ fn main() {
777777
}
778778

779779
// count leading zeros
780-
gen(|(a): (usize)| {
781-
Some(a.leading_zeros())
780+
gen(|a: MyU128| {
781+
Some((a as usize).leading_zeros())
782782
},
783-
"builtins::int::__clzsi2(a)");
783+
"{
784+
builtins::int::__clzsi2(a as usize)
785+
}");
784786
}
785787

786788
macro_rules! gen_float {

0 commit comments

Comments
 (0)