diff options
author | B Stack <bgstack15@gmail.com> | 2021-01-04 08:08:11 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2021-01-04 08:08:11 -0500 |
commit | f9a264860c23b8381adbc0b9766e1b677a07da78 (patch) | |
tree | 494f9fc32eeee34c6c46611ae0137c25a79517a4 /zen/basic_math.h | |
parent | Merge branch '11.4' into 'master' (diff) | |
download | FreeFileSync-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.h | 2 |
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; } |