diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-09-01 22:07:18 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-09-01 22:07:18 +0000 |
commit | 670a4672c9f89d8acb4e7db6a268273e9fe8442c (patch) | |
tree | 41ad0e9916ed51e59a8b38c0e349cd61f870d60f | |
parent | 8251826ef0a321fcf647ea1d1df13e9139e465ef (diff) | |
download | coreutils-670a4672c9f89d8acb4e7db6a268273e9fe8442c.tar.xz |
Fix typo in previous change; an unsigned int wasn't converted to
uintmax_t at the right time. Problem reported by Bruno.
-rw-r--r-- | src/stat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stat.c b/src/stat.c index 08fed6df3..6de5e15c3 100644 --- a/src/stat.c +++ b/src/stat.c @@ -424,7 +424,10 @@ print_statfs (char *pformat, size_t prefix_len, char m, char const *filename, int words = sizeof statfsbuf->f_fsid / sizeof *p; int i; for (i = 0; i < words && i * sizeof *p < sizeof fsid; i++) - fsid |= p[words - 1 - i] << (i * CHAR_BIT * sizeof *p); + { + uintmax_t u = p[words - 1 - i]; + fsid |= u << (i * CHAR_BIT * sizeof *p); + } #endif out_uint_x (pformat, prefix_len, fsid); } |