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 @@ -270,8 +270,8 @@ impl super::Field for Fe32 {
270
270
if self . 0 == 0 || other. 0 == 0 {
271
271
Fe32 ( 0 )
272
272
} else {
273
- let log1 = LOG [ self . 0 as usize ] ;
274
- let log2 = LOG [ other. 0 as usize ] ;
273
+ let log1 = LOG [ usize :: from ( self . 0 ) ] ;
274
+ let log2 = LOG [ usize :: from ( other. 0 ) ] ;
275
275
let mult_order = Self :: MULTIPLICATIVE_ORDER as isize ;
276
276
Fe32 ( LOG_INV [ ( ( log1 + log2) % mult_order) as usize ] )
277
277
}
@@ -282,8 +282,8 @@ impl super::Field for Fe32 {
282
282
} else if other. 0 == 0 {
283
283
panic ! ( "Attempt to divide {} by 0 in GF32" , self ) ;
284
284
} else {
285
- let log1 = LOG [ self . 0 as usize ] ;
286
- let log2 = LOG [ other. 0 as usize ] ;
285
+ let log1 = LOG [ usize :: from ( self . 0 ) ] ;
286
+ let log2 = LOG [ usize :: from ( other. 0 ) ] ;
287
287
let mult_order = Self :: MULTIPLICATIVE_ORDER as isize ;
288
288
Fe32 ( LOG_INV [ ( ( mult_order + log1 - log2) % mult_order) as usize ] )
289
289
}
You can’t perform that action at this time.
0 commit comments