mirror of https://github.com/MidnightCommander/mc
Added an assertion to offset_rounddown to make sure that b != 0.
This commit is contained in:
parent
5d9985751a
commit
338c32c400
|
@ -266,6 +266,7 @@ offset_doz (offset_type a, offset_type b)
|
|||
static inline offset_type
|
||||
offset_rounddown (offset_type a, offset_type b)
|
||||
{
|
||||
assert (b != 0);
|
||||
return a - a % b;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue