Don't try to print the vector size if it is empty (a single bit)
This commit is contained in:
parent
3852545f21
commit
931039761a
|
|
@ -187,9 +187,11 @@ void uarray_type_t::pform_dump(ostream&out, unsigned indent) const
|
|||
void vector_type_t::pform_dump(ostream&fd, unsigned indent) const
|
||||
{
|
||||
fd << setw(indent) << "" << "vector of " << base_type;
|
||||
for (list<pform_range_t>::iterator cur = pdims->begin()
|
||||
; cur != pdims->end() ; ++cur) {
|
||||
fd << "[" << *(cur->first) << ":" << *(cur->second) << "]";
|
||||
if (pdims.get()) {
|
||||
for (list<pform_range_t>::iterator cur = pdims->begin()
|
||||
; cur != pdims->end() ; ++cur) {
|
||||
fd << "[" << *(cur->first) << ":" << *(cur->second) << "]";
|
||||
}
|
||||
}
|
||||
fd << endl;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue