projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make use of size assertions in references where possible.
[cumulus.git]
/
ref.cc
diff --git
a/ref.cc
b/ref.cc
index
7e92b7a
..
4020c01
100644
(file)
--- a/
ref.cc
+++ b/
ref.cc
@@
-99,7
+99,7
@@
string ObjectReference::to_string() const
char buf[64];
if (range_exact) {
sprintf(buf, "[=%zu]", range_length);
- } else if (
range_start == 0
) {
+ } else if (
type == REF_ZERO
) {
sprintf(buf, "[%zu]", range_length);
} else {
sprintf(buf, "[%zu+%zu]", range_start, range_length);