summaryrefslogtreecommitdiffstats
path: root/src/file.rs
diff options
context:
space:
mode:
authorBen S <ogham@bsago.me>2015-05-03 11:47:34 +0100
committerBen S <ogham@bsago.me>2015-05-03 11:47:34 +0100
commitc642f8cbbdc7b5514fbd649b4fcaf180d623e1ef (patch)
treedd6f089d54c96e17c26a62c4a81098052683475a /src/file.rs
parentc3915576c112bf33ea5d4d99f8325f03c8604ba9 (diff)
Update the type of Unix permission bits
Diffstat (limited to 'src/file.rs')
-rw-r--r--src/file.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file.rs b/src/file.rs
index 6cc7b5b..5a337cb 100644
--- a/src/file.rs
+++ b/src/file.rs
@@ -431,8 +431,8 @@ impl<'a> File<'a> {
}
/// Helper method for the permissions string.
- fn permission_bit(bits: i32, bit: Permission, character: &'static str, style: Style) -> ANSIString<'static> {
- let bi32 = bit as i32;
+ fn permission_bit(bits: u16, bit: Permission, character: &'static str, style: Style) -> ANSIString<'static> {
+ let bi32 = bit as u16;
if bits & bi32 == bi32 {
style.paint(character)
}