Handle large negative block counts correctly.

MFC after:	 2 weeks
This commit is contained in:
Greg Lehey 2012-12-12 04:18:25 +00:00
parent 403c7f59d5
commit 6b7aceb85b

View File

@ -397,7 +397,7 @@ prthumanvalinode(int64_t bytes)
static intmax_t
fsbtoblk(int64_t num, uint64_t fsbs, u_long bs)
{
return (num * (intmax_t) fsbs / bs);
return (num * (intmax_t) fsbs / (int64_t) bs);
}
/*