X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=ref.cc;h=4020c01c7eb0c189bdaae022b134102d9f8eb52b;hb=6450a89067119296800fc1148bb8a88d26857b6e;hp=7e92b7a7fa06cd0d84c4832dfcce332edaa28f9a;hpb=d6ac4affcd30b889ef69ab2c2d7e31c756cc6c6f;p=cumulus.git diff --git a/ref.cc b/ref.cc index 7e92b7a..4020c01 100644 --- 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);