summaryrefslogtreecommitdiff
path: root/zen/basic_math.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/basic_math.h')
-rw-r--r--zen/basic_math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zen/basic_math.h b/zen/basic_math.h
index 0f5191e3..2171ee24 100644
--- a/zen/basic_math.h
+++ b/zen/basic_math.h
@@ -175,7 +175,7 @@ auto integerDivideRoundUp(N numerator, D denominator)
{
static_assert(zen::IsInteger<N>::value);
static_assert(zen::IsInteger<D>::value);
- assert(numerator > 0 && denominator > 0);
+ assert(numerator >= 0 && denominator > 0);
return (numerator + denominator - 1) / denominator;
}
bgstack15