]> sigrok.org Git - pulseview.git/commit
tracegroup.cpp: Fix a potential unintended integer division.
authorUwe Hermann <redacted>
Mon, 21 May 2018 14:38:13 +0000 (16:38 +0200)
committerUwe Hermann <redacted>
Mon, 21 May 2018 15:20:54 +0000 (17:20 +0200)
commitc3b911b571c430cecf563a1d2234698e6aff6c34
tree011a0c9fa78e72d68b8fb6d61595266ca631b33b
parentcc69e8ae5abc3bfbe50caee55a3ca1be7e0a479a
tracegroup.cpp: Fix a potential unintended integer division.

Reported by Coverity (CID 279773):

  Result is not floating-point (UNINTENDED_INTEGER_DIVISION)
    integer_division: Dividing integer expressions -5 and 2, and then
    converting the integer quotient to type double. Any remainder, or
    fractional part of the quotient, is ignored.
pv/views/trace/tracegroup.cpp