mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
dad5eb7e1f
- Rewrite changes file. - Avoid float comparison with == and use <= instead. - Add teor's tor_llround(trunc(...)) back to silence clang warnings. - Replace tt_assert() with tt_i64_op() and friends. - Fix whitespace and a comment.
9 lines
423 B
Plaintext
9 lines
423 B
Plaintext
o Code simplifications and unit tests:
|
|
- Handle edge cases in the laplace functions: avoid division by zero,
|
|
avoid taking the log of zero, and silence clang type conversion
|
|
warnings using round and trunc. Add unit tests for edge cases with
|
|
maximal values.
|
|
- Consistently check for overflow in round_*_to_next_multiple_of
|
|
functions, and add unit tests with additional and maximal values.
|
|
|