Avoid division by zero when rounding estimate
commit75cc7af446a00d501d2556ae6fbd013d85c9e3aa
authorOlly Betts <olly@survex.com>
Fri, 13 Jan 2017 03:17:52 +0000 (13 16:17 +1300)
committerOlly Betts <olly@survex.com>
Fri, 13 Jan 2017 03:17:52 +0000 (13 16:17 +1300)
treee638b7f5ffd19b0ae1d5ef63887c5cd4e0af1e27
parent789f0652608356c6acc6c3110f21b6f6f6d9e602
Avoid division by zero when rounding estimate

If the estimate was zero, but the upper bound non-zero, the new
rounding code would divide by zero.  This case can happen when
calling get_mset(0, 0) (and probably can't when calling get_mset()
with other arguments).
xapian-core/api/omenquire.cc
xapian-core/tests/api_query.cc