Skip to content

bpf: fix size mismatch for size_t on i686

Peter Hutterer requested to merge whot/udev-hid-bpf:wip/size-mismatch into main
error[E0308]: mismatched types
  --> src/bpf.rs:39:13
   |
39 |         sz: std::mem::size_of::<libbpf_sys::bpf_test_run_opts>() as u64,
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `u64`

Merge request reports

Loading