]> git.ipfire.org Git - thirdparty/tor.git/commit
Explicitly cast when dividing ints then implicitly casting to double.
authorNick Mathewson <nickm@torproject.org>
Thu, 21 Aug 2014 14:19:26 +0000 (10:19 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 21 Aug 2014 14:19:26 +0000 (10:19 -0400)
commit2a0a5fe6123bd87f996814991641cc404601ea55
tree3f9511c9cbb39231850881bf970fbb9d09c27807
parentb6a725c67e46d274a518b6c5243fffdf1730a23f
Explicitly cast when dividing ints then implicitly casting to double.

Coverity thinks that when we do "double x = int1/int2;", we probably
meant "double x = ((double)int1) / int2;".  In these cases, we
didn't.

[Coverity CID 1232089 and 1232090]
src/or/circuitstats.c
src/or/routerlist.c