「view this page in B3 βῆτα server」

Revisions №61014

branch: master 「№61014」
Commited by: Rocco Moretti
GitHub commit link: 「dc7a49ce5d95aa6f」 「№4290」
Difference from previous tested commit:  code diff
Commit date: 2019-10-31 11:50:00

Merge pull request #4290 from RosettaCommons/roccomoretti/bugprone-integer-division_fix Fix clang-tidy bugprone-integer-division Dividing two integers in C++ gives a (truncated) integer result. This may not be what you want. Clang-tidy has a check to see if you're doing an integer division and then using the result as a floating point. This flags a fair number of examples in Rosetta, some of which are obvious bugs. I've attempted to fix the instances which clang-tidy flags, mainly by converting them to actual floating point results. This may not be the best way to fix some of these, so feel free to adjust such that the intent is clearer. See https://github.com/RosettaCommons/main/pull/4290 for detailed discussion.

...