X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=ref.cc;h=4418e1552cb736d601836ef9be2df26736b7e6cb;hp=7e92b7a7fa06cd0d84c4832dfcce332edaa28f9a;hb=f38dd9bcb0caffd3fc9126b05788c936690e8288;hpb=260aaf269765b6fdf0c74ec51615e38a70b27fa3 diff --git a/ref.cc b/ref.cc index 7e92b7a..4418e15 100644 --- a/ref.cc +++ b/ref.cc @@ -25,6 +25,7 @@ #include #include +#include #include #include #include @@ -99,7 +100,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);