diff options
author | Jim Meyering <jim@meyering.net> | 2001-12-09 22:54:19 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-12-09 22:54:19 +0000 |
commit | 0928d7988913af974b8c3223d25bf0a91008d9a8 (patch) | |
tree | bd06319c82ee1e6c44a69c5218e5baa117cb5db9 | |
parent | 6994cb9650ac42039d859bb0a9f40513eda89e1f (diff) | |
download | coreutils-0928d7988913af974b8c3223d25bf0a91008d9a8.tar.xz |
(mode_compile): Add cast to avoid warning about
`signed and unsigned type in conditional expression'.
-rw-r--r-- | lib/modechange.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/modechange.c b/lib/modechange.c index 6fb9832ef..a102b6956 100644 --- a/lib/modechange.c +++ b/lib/modechange.c @@ -194,18 +194,18 @@ mode_compile (const char *mode_string, unsigned int masked_ops) && S_IRGRP == RGRP && S_IWGRP == WGRP && S_IXGRP == XGRP && S_IROTH == ROTH && S_IWOTH == WOTH && S_IXOTH == XOTH) ? octal_value - : ((octal_value & SUID ? S_ISUID : 0) - | (octal_value & SGID ? S_ISGID : 0) - | (octal_value & SVTX ? S_ISVTX : 0) - | (octal_value & RUSR ? S_IRUSR : 0) - | (octal_value & WUSR ? S_IWUSR : 0) - | (octal_value & XUSR ? S_IXUSR : 0) - | (octal_value & RGRP ? S_IRGRP : 0) - | (octal_value & WGRP ? S_IWGRP : 0) - | (octal_value & XGRP ? S_IXGRP : 0) - | (octal_value & ROTH ? S_IROTH : 0) - | (octal_value & WOTH ? S_IWOTH : 0) - | (octal_value & XOTH ? S_IXOTH : 0))); + : (mode_t) ((octal_value & SUID ? S_ISUID : 0) + | (octal_value & SGID ? S_ISGID : 0) + | (octal_value & SVTX ? S_ISVTX : 0) + | (octal_value & RUSR ? S_IRUSR : 0) + | (octal_value & WUSR ? S_IWUSR : 0) + | (octal_value & XUSR ? S_IXUSR : 0) + | (octal_value & RGRP ? S_IRGRP : 0) + | (octal_value & WGRP ? S_IWGRP : 0) + | (octal_value & XGRP ? S_IXGRP : 0) + | (octal_value & ROTH ? S_IROTH : 0) + | (octal_value & WOTH ? S_IWOTH : 0) + | (octal_value & XOTH ? S_IXOTH : 0))); p = make_node_op_equals (mode); if (p == NULL) |