File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -911,7 +911,7 @@ impl<T: sealed::Context> Features<T> {
911
911
}
912
912
913
913
/// Returns the set of required features unknown by `other`, as their bit position.
914
- pub fn required_unknown_bits_from ( & self , other : & Self ) -> Vec < usize > {
914
+ pub fn required_unknown_bits_from ( & self , other : & Self ) -> Vec < u64 > {
915
915
let mut unknown_bits = Vec :: new ( ) ;
916
916
917
917
// Bitwise AND-ing with all even bits set except for known features will select required
@@ -921,7 +921,7 @@ impl<T: sealed::Context> Features<T> {
921
921
if byte & unknown_features != 0 {
922
922
for bit in ( 0 ..8 ) . step_by ( 2 ) {
923
923
if ( ( byte & unknown_features) >> bit) & 1 == 1 {
924
- unknown_bits. push ( i * 8 + bit) ;
924
+ unknown_bits. push ( ( i as u64 ) * 8 + bit) ;
925
925
}
926
926
}
927
927
}
You can’t perform that action at this time.
0 commit comments