Added an assertion to offset_rounddown to make sure that b != 0.

This commit is contained in:
Roland Illig 2005-07-06 22:35:17 +00:00
parent 5d9985751a
commit 338c32c400
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}