committer: mfx <mfx> 1035300869 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2002-10-22 15:34:29 +00:00
parent 7af193df77
commit 204f4eefd8
+1 -1
View File
@@ -537,7 +537,7 @@ unsigned get_ratio(unsigned u_len, unsigned c_len)
{
const unsigned n = 1000000;
if (u_len <= 0)
return n;
return c_len <= 0 ? 0 : n;
return (unsigned) ((c_len * (upx_uint64l)n) / u_len) + 5;
}