Skip to content

Commit

Permalink
ovn.rs: incorrect signature in ovn_count_1bits
Browse files Browse the repository at this point in the history
`ovn_count_1bits` was declared to take a value instead of reference
(as required by DDlog's calling convention).
  • Loading branch information
ryzhyk committed Feb 27, 2019
1 parent 97fa65e commit 7f52f03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ovn/northd/ovn.rs
Expand Up @@ -372,8 +372,8 @@ pub fn ovn_ip_address_and_port_from_lb_key(k: &String) ->
}
}

pub fn ovn_count_1bits(x: u64) -> u8 {
unsafe { count_1bits(x as libc::uint64_t) as u8 }
pub fn ovn_count_1bits(x: &u64) -> u8 {
unsafe { count_1bits(*x as libc::uint64_t) as u8 }
}


Expand Down

0 comments on commit 7f52f03

Please sign in to comment.