Make cbs_topic_ranges_to_string work with all ids

This commit is contained in:
Denis Kenzior 2009-09-09 21:24:39 -05:00 committed by Denis Kenzior
parent 0c1f8003af
commit c559aa42f6
1 changed files with 7 additions and 1 deletions

View File

@ -3602,7 +3602,13 @@ static inline int element_length(unsigned short element)
if (element <= 99)
return 2;
return 3;
if (element <= 999)
return 3;
if (element <= 9999)
return 4;
return 5;
}
static inline int range_length(struct cbs_topic_range *range)