Improved an assert
This commit is contained in:
parent
61f11bab17
commit
1292eec17b
1 changed files with 2 additions and 3 deletions
|
|
@ -529,11 +529,10 @@ string item_context(const item_t& item, const string& desc)
|
||||||
return empty_string;
|
return empty_string;
|
||||||
|
|
||||||
std::streamoff len = item.pos->end_pos - item.pos->beg_pos;
|
std::streamoff len = item.pos->end_pos - item.pos->beg_pos;
|
||||||
if (! len)
|
if (! (len > 0))
|
||||||
return empty_string;
|
return empty_string;
|
||||||
|
|
||||||
assert(len > 0);
|
assert(len < 8192);
|
||||||
assert(len < 2048);
|
|
||||||
|
|
||||||
std::ostringstream out;
|
std::ostringstream out;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue