diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-15 08:15:36 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-15 08:15:36 -0400 |
commit | 123337bbc998b39929da76a379331417f8580833 (patch) | |
tree | 49a9e9bd04ecc952681a9b7f7e862a39ceff7d0e /src | |
parent | 72391fce2336cf028e6d0b6cb0be41b2db81ebcf (diff) | |
parent | 42e7d0ea14fb88500d488983c82003a668d0446a (diff) | |
download | tor-123337bbc998b39929da76a379331417f8580833.tar.gz tor-123337bbc998b39929da76a379331417f8580833.zip |
Merge remote-tracking branch 'teor/ticket23528'
Diffstat (limited to 'src')
-rw-r--r-- | src/common/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/util.c b/src/common/util.c index 36d0f4d068..ac2fd6700f 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -477,7 +477,7 @@ round_to_power_of_2(uint64_t u64) /** Return the lowest x such that x is at least <b>number</b>, and x modulo * <b>divisor</b> == 0. If no such x can be expressed as an unsigned, return - * UINT_MAX */ + * UINT_MAX. Asserts if divisor is zero. */ unsigned round_to_next_multiple_of(unsigned number, unsigned divisor) { @@ -491,7 +491,7 @@ round_to_next_multiple_of(unsigned number, unsigned divisor) /** Return the lowest x such that x is at least <b>number</b>, and x modulo * <b>divisor</b> == 0. If no such x can be expressed as a uint32_t, return - * UINT32_MAX */ + * UINT32_MAX. Asserts if divisor is zero. */ uint32_t round_uint32_to_next_multiple_of(uint32_t number, uint32_t divisor) { @@ -506,7 +506,7 @@ round_uint32_to_next_multiple_of(uint32_t number, uint32_t divisor) /** Return the lowest x such that x is at least <b>number</b>, and x modulo * <b>divisor</b> == 0. If no such x can be expressed as a uint64_t, return - * UINT64_MAX */ + * UINT64_MAX. Asserts if divisor is zero. */ uint64_t round_uint64_to_next_multiple_of(uint64_t number, uint64_t divisor) { |