File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -234,11 +234,11 @@ impl CapData {
234
234
}
235
235
236
236
let offset_hi = unsafe { access. read ( addr. address , addr. offset + 16 ) } ;
237
- let offset_hi = Le ( offset_hi) ;
237
+ let offset_hi = le32 :: from_ne ( offset_hi) ;
238
238
let offset = le64:: from ( [ cap. offset , offset_hi] ) ;
239
239
240
240
let length_hi = unsafe { access. read ( addr. address , addr. offset + 20 ) } ;
241
- let length_hi = Le ( length_hi) ;
241
+ let length_hi = le32 :: from_ne ( length_hi) ;
242
242
let length = le64:: from ( [ cap. length , length_hi] ) ;
243
243
244
244
( offset, length)
@@ -253,7 +253,7 @@ impl CapData {
253
253
}
254
254
255
255
let notify_off_multiplier = unsafe { access. read ( addr. address , addr. offset + 16 ) } ;
256
- let notify_off_multiplier = Le ( notify_off_multiplier) ;
256
+ let notify_off_multiplier = le32 :: from_ne ( notify_off_multiplier) ;
257
257
258
258
Some ( notify_off_multiplier)
259
259
}
You can’t perform that action at this time.
0 commit comments