projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8251826
)
Fix typo in previous change; an unsigned int wasn't converted to
author
Paul Eggert
<eggert@cs.ucla.edu>
Fri, 1 Sep 2006 22:07:18 +0000
(22:07 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Fri, 1 Sep 2006 22:07:18 +0000
(22:07 +0000)
uintmax_t at the right time. Problem reported by Bruno.
src/stat.c
patch
|
blob
|
history
diff --git
a/src/stat.c
b/src/stat.c
index
08fed6d
..
6de5e15
100644
(file)
--- 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);
}