Mercurial > hg > xemacs-beta
diff src/filemode.c @ 404:2f8bb876ab1d r21-2-32
Import from CVS: tag r21-2-32
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:16:07 +0200 |
parents | 376386a54a3c |
children | 697ef44129c6 e5da225ea2ca |
line wrap: on
line diff
--- a/src/filemode.c Mon Aug 13 11:15:00 2007 +0200 +++ b/src/filemode.c Mon Aug 13 11:16:07 2007 +0200 @@ -79,9 +79,9 @@ mode_string (unsigned short mode, char *str) { str[0] = ftypelet (mode); - rwx ((mode & 0700) << 0, &str[1]); - rwx ((mode & 0070) << 3, &str[4]); - rwx ((mode & 0007) << 6, &str[7]); + rwx ((unsigned short) ((mode & 0700) << 0), &str[1]); + rwx ((unsigned short) ((mode & 0070) << 3), &str[4]); + rwx ((unsigned short) ((mode & 0007) << 6), &str[7]); setst (mode, str); }