File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -227,8 +227,8 @@ pub fn gen_register_r(r: &Register, d: &Defaults) -> Vec<Tokens> {
227
227
}
228
228
} else {
229
229
let width_ty = width. to_ty ( ) ;
230
- let mask: u32 = ( 1 << width) - 1 ;
231
- let mask = Lit :: Int ( u64 :: from ( mask) , IntTy :: Unsuffixed ) ;
230
+ let mask: u64 = ( 1 << width) - 1 ;
231
+ let mask = Lit :: Int ( mask, IntTy :: Unsuffixed ) ;
232
232
233
233
quote ! {
234
234
pub fn #name( & self ) -> #width_ty {
@@ -314,8 +314,8 @@ pub fn gen_register_w(r: &Register, d: &Defaults) -> Vec<Tokens> {
314
314
}
315
315
} else {
316
316
let width_ty = width. to_ty ( ) ;
317
- let mask: u32 = ( 1 << width) - 1 ;
318
- let mask = Lit :: Int ( u64 :: from ( mask) , IntTy :: Unsuffixed ) ;
317
+ let mask = ( 1 << width) - 1 ;
318
+ let mask = Lit :: Int ( mask, IntTy :: Unsuffixed ) ;
319
319
320
320
quote ! {
321
321
pub fn #name( & mut self , value: #width_ty) -> & mut Self {
You can’t perform that action at this time.
0 commit comments