Handle large negative block counts correctly.
MFC after: 2 weeks
This commit is contained in:
parent
403c7f59d5
commit
6b7aceb85b
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user