When computing the progress, we perform some arithmetics that are implicitly converting from `size_t` to `int`. In one case we're calclulating a percentage, so we know that it should always be in the range of [0,100] and thus we're fine. In the other case we convert from bytes to kilobytes -- this should be stored in a `size_t` to avoid loss of precision, even though it probably won't matter due to limited download rates.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
CMakeLists.txt | Loading commit data... | |
COPYING | Loading commit data... | |
README.md | Loading commit data... | |
add.c | Loading commit data... | |
blame.c | Loading commit data... | |
cat-file.c | Loading commit data... | |
checkout.c | Loading commit data... | |
clone.c | Loading commit data... | |
common.c | Loading commit data... | |
common.h | Loading commit data... | |
describe.c | Loading commit data... | |
diff.c | Loading commit data... | |
fetch.c | Loading commit data... | |
for-each-ref.c | Loading commit data... | |
general.c | Loading commit data... | |
index-pack.c | Loading commit data... | |
init.c | Loading commit data... | |
lg2.c | Loading commit data... | |
log.c | Loading commit data... | |
ls-files.c | Loading commit data... | |
ls-remote.c | Loading commit data... | |
merge.c | Loading commit data... | |
remote.c | Loading commit data... | |
rev-list.c | Loading commit data... | |
rev-parse.c | Loading commit data... | |
show-index.c | Loading commit data... | |
status.c | Loading commit data... | |
tag.c | Loading commit data... |