Mercurial > emacs
changeset 18666:e97df3d7af25
(Ffile_attributes): Use cast to avoid warnings.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 07 Jul 1997 19:00:51 +0000 |
parents | 6d7b8b35d878 |
children | d4f53287fc5b |
files | src/dired.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dired.c Mon Jul 07 19:00:25 1997 +0000 +++ b/src/dired.c Mon Jul 07 19:00:51 1997 +0000 @@ -685,7 +685,8 @@ #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),