Skip to content

Commit

Permalink
use proper c char types (#54)
Browse files Browse the repository at this point in the history
related: #50
  • Loading branch information
blesson3 authored Apr 19, 2021
1 parent c4e369e commit 849cc4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgctrl-rs/src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl FromStr for InterfaceName {
return Err(InvalidInterfaceName::InvalidChars);
}

*out = *b as i8;
*out = *b as c_char;
}

Ok(Self(buf))
Expand Down

0 comments on commit 849cc4c

Please sign in to comment.