Skip to content

Commit

Permalink
fix i32 release
Browse files Browse the repository at this point in the history
  • Loading branch information
adgaultier committed Oct 11, 2024
1 parent c0f7e88 commit 3d36375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oryx-tui/src/ebpf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ pub fn load_ingress(

#[cfg(not(debug_assertions))]
let mut bpf = match EbpfLoader::new()
.set_global("TRAFFIC_DIRECTION", &(-1 as i32), true)
.set_global("TRAFFIC_DIRECTION", &-1i32, true)
.load(include_bytes_aligned!(
"../../target/bpfel-unknown-none/release/oryx"
)) {
Expand Down Expand Up @@ -443,7 +443,7 @@ pub fn load_egress(

#[cfg(not(debug_assertions))]
let mut bpf = match EbpfLoader::new()
.set_global("TRAFFIC_DIRECTION", &(1 as i32), true)
.set_global("TRAFFIC_DIRECTION", &1i32, true)
.load(include_bytes_aligned!(
"../../target/bpfel-unknown-none/release/oryx"
)) {
Expand Down

0 comments on commit 3d36375

Please sign in to comment.