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> {
911911 }
912912
913913 /// 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 > {
915915 let mut unknown_bits = Vec :: new ( ) ;
916916
917917 // 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> {
921921 if byte & unknown_features != 0 {
922922 for bit in ( 0 ..8 ) . step_by ( 2 ) {
923923 if ( ( byte & unknown_features) >> bit) & 1 == 1 {
924- unknown_bits. push ( i * 8 + bit) ;
924+ unknown_bits. push ( ( i as u64 ) * 8 + bit) ;
925925 }
926926 }
927927 }
You can’t perform that action at this time.
0 commit comments