From 1292eec17b317e5bd910760f74cf5849e272e23d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 12 Feb 2011 16:46:20 -0500 Subject: Improved an assert --- src/item.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/item.cc') diff --git a/src/item.cc b/src/item.cc index 9290ab2f..9a9ab833 100644 --- a/src/item.cc +++ b/src/item.cc @@ -529,11 +529,10 @@ string item_context(const item_t& item, const string& desc) return empty_string; std::streamoff len = item.pos->end_pos - item.pos->beg_pos; - if (! len) + if (! (len > 0)) return empty_string; - assert(len > 0); - assert(len < 2048); + assert(len < 8192); std::ostringstream out; -- cgit v1.2.3