Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use an explicit cast when a value gets stored in a smaller var.
[rsync/rsync.git]
/
util.c
diff --git
a/util.c
b/util.c
index
40f00d2
..
cdf68bc
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-1128,7
+1128,7
@@
char *human_num(int64 num)
if (!num)
*--s = '0';
while (num) {
- *--s = (num % 10) + '0';
+ *--s = (
char)(
num % 10) + '0';
num /= 10;
}
return s;