summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/bin_statistics_f_impl.cc
diff options
context:
space:
mode:
authorPhilip Balister <philip@balister.org>2018-11-05 14:00:28 -0500
committerPhilip Balister <philip@balister.org>2018-11-05 14:00:28 -0500
commit1166eec8f22141b1eb23a40e3b221b046883f682 (patch)
tree147a60dcada631660c9fecfd2ba77b6632f906fa /gr-blocks/lib/bin_statistics_f_impl.cc
parentd60fcd1701fa4f3fe0f6b6f539a2a11613a904ca (diff)
interleave_impl.cc: Address Coverity 1327839, 1327840, 1327841, 1327842.
Dividing two ints gives a result that is an int. Adding 0.5f and converting back to an int gives the original result. This change keeps the current behavior and doesn't implement the (suspected) desired behavior. If rounding is desired, the divison should be done as a float, so the 0.5f is added to a float before truncation. Signed-off-by: Philip Balister <philip@balister.org>
Diffstat (limited to 'gr-blocks/lib/bin_statistics_f_impl.cc')
0 files changed, 0 insertions, 0 deletions