summaryrefslogtreecommitdiff
path: root/zen/basic_math.h
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2021-01-04 08:08:11 -0500
committerB Stack <bgstack15@gmail.com>2021-01-04 08:08:11 -0500
commitf9a264860c23b8381adbc0b9766e1b677a07da78 (patch)
tree494f9fc32eeee34c6c46611ae0137c25a79517a4 /zen/basic_math.h
parentMerge branch '11.4' into 'master' (diff)
downloadFreeFileSync-f9a264860c23b8381adbc0b9766e1b677a07da78.tar.gz
FreeFileSync-f9a264860c23b8381adbc0b9766e1b677a07da78.tar.bz2
FreeFileSync-f9a264860c23b8381adbc0b9766e1b677a07da78.zip
add upstream 11.5
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