summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-07-07 19:00:51 +0000
committerRichard M. Stallman <rms@gnu.org>1997-07-07 19:00:51 +0000
commitce4200f6793e0d8b03f5b964ac91565dcee920e8 (patch)
treed5eeb42220cd0265b6cd125d8bce446184f64c30 /src
parent4b104c4137b187b36513da3b4f7b3264bc06a9d3 (diff)
downloademacs-ce4200f6793e0d8b03f5b964ac91565dcee920e8.tar.gz
(Ffile_attributes): Use cast to avoid warnings.
Diffstat (limited to 'src')
-rw-r--r--src/dired.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dired.c b/src/dired.c
index ea0624dd535..7fc39dcd722 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -685,7 +685,8 @@ If file does not exist, returns nil.")
#ifdef BSD4_3
#undef BSD4_2 /* ok, you can look again without throwing up */
#endif
- if (s.st_ino & ((-1) << VALBITS))
+ /* Cast -1 to avoid warning if int is not as wide as VALBITS. */
+ if (s.st_ino & (((EMACS_INT) (-1)) << VALBITS))
/* To allow inode numbers larger than VALBITS, separate the bottom
16 bits. */
values[10] = Fcons (make_number (s.st_ino >> 16),