diff options
author | B Stack <bgstack15@gmail.com> | 2021-01-04 13:48:35 +0000 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2021-01-04 13:48:35 +0000 |
commit | edb1c4482c0a0d91bddfee6e1f9fce234e59840a (patch) | |
tree | 494f9fc32eeee34c6c46611ae0137c25a79517a4 /zen/basic_math.h | |
parent | Merge branch '11.4' into 'master' (diff) | |
parent | add upstream 11.5 (diff) | |
download | FreeFileSync-edb1c4482c0a0d91bddfee6e1f9fce234e59840a.tar.gz FreeFileSync-edb1c4482c0a0d91bddfee6e1f9fce234e59840a.tar.bz2 FreeFileSync-edb1c4482c0a0d91bddfee6e1f9fce234e59840a.zip |
Merge branch '11.5' into 'master'11.5
add upstream 11.5
See merge request opensource-tracking/FreeFileSync!29
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; } |